
function setCookie(name, value, days)
{
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  } else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function getCookie(Name) {
	var search = Name + "="   
	
	//alert(document.cookie);
	if (document.cookie.length > 0) { 
		offset = document.cookie.indexOf(search)   // if there are any cookies          
		
		if (offset != -1) { 
			offset += search.length    // if cookie exists                
			end = document.cookie.indexOf(";", offset)  // set index of beginning of value          
			
			if (end == -1)             
				end = document.cookie.length   // set index of end of cookie value         
			return unescape(document.cookie.substring(offset, end))      
		}    
	}
}

function deleteCookie(name) {
	document.cookie = name + "=" + "; expires=Thu, 01-Jan-99 00:00:01 GMT";
	} 

function CreateBookmarkLink() {
    // 	This routine creates a bookmark in IE, Mozilla Firefox and Opera Browsers.
    //  Usage:
    //	  if (window.external) {  document.write('<a href = "javascript:CreateBookmarkLink()");">Add to Favorites</a>');   }
    //	  else if (window.sidebar) {  document.write('<a href = "javascript:CreateBookmarkLink()");">Bookmark Page</a>');  }
    //	  else if (window.opera && window.print) {	document.write('<a href = "javascript:CreateBookmarkLink()");">Add Bookmark</a>'); }

    title = document.title;
    url = this.location;

    if (window.sidebar) {
      // Mozilla Firefox Bookmark
      window.sidebar.addPanel(title, url,"");
      }
    else if( window.external ) {
      // IE Favorite
      window.external.AddFavorite( url, title);
      }
    else if(window.opera && window.print) {
      // Opera Hotlist
      return true;
      }
    }

function writeEmailAddress(mailbox,domain,exten) {
	document.write('<a href="mai'+'lto'+':'+mailbox+'@'+domain +'.'+exten+ '"'+' style="text-decoration:none;font-weight:light;color:#444444;">');
	document.write(mailbox +'@'+domain +'.'+exten+'</a>');
	return true;
	}
	
	
function initializePage() {
	}
	
