var WM_acceptsCookies = false;
if(document.cookie == '') {
    document.cookie = 'WM_acceptsCookies=yes'; 
    if(document.cookie.indexOf('WM_acceptsCookies=yes') != -1) {
	WM_acceptsCookies = true; 
    }
} else { 
  WM_acceptsCookies = true;
}

function WM_setCookie (name, value) {
    if (WM_acceptsCookies) {
	//var not_NN2 = (navigator && navigator.appName 
	//	       && (navigator.appName == 'Netscape') 
	//	       && navigator.appVersion 
	//	       && (parseInt(navigator.appVersion) == 2))?false:true;
	//Added by JK	       
	hours = 24;
      	//if(hours && not_NN2) { // NN2 cannot handle Dates, so skip this part
	if(hours) {
	    if ( (typeof(hours) == 'string') && Date.parse(hours) ) { // already a Date string
		var numHours = hours;
	    } else if (typeof(hours) == 'number') { // calculate Date from number of hours
		var numHours = (new Date((new Date()).getTime() + hours*3600000)).toGMTString();
	    }
	}
	document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' + numHours):'') ; // Set the cookie, adding any parameters that were specified.
	//End Addition	       
//	document.cookie = name + '=' + escape(value) + ';expires=Fri, 1-Jan-2020 00:00:00 GMT' ;
}      
}

function WM_readCookie(name) {
    if(document.cookie == '') {
	return false; 
    } else {
	var firstChar, lastChar;
	var theBigCookie = document.cookie;
	firstChar = theBigCookie.indexOf(name);
	var NN2Hack = firstChar + name.length;
	if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) {
	    firstChar += name.length + 1;
	    lastChar = theBigCookie.indexOf(';', firstChar); 
	    if(lastChar == -1) lastChar = theBigCookie.length;
	    return unescape(theBigCookie.substring(firstChar, lastChar));
	} else {
	return false;
}
}	
}


//added by RD, 7 Apr 04, per client request
	var rightmessage = "function disabled"; 
	function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ 	alert(rightmessage); return false; } 
	if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { 	alert(rightmessage); 	return false; } } 
	document.onmousedown = rtclickcheck;
