<!--

// This next little bit of code tests whether the user accepts cookies.


var acceptsCookies = false;

if(document.cookie == '') {



    document.cookie = 'acceptsCookies=yes'; // Try to set a cookie.



    if(document.cookie.indexOf('acceptsCookies=yes') != -1) {



	acceptsCookies = true;



    			}



				// If it succeeds, set variable



} else {



	// there was already a cookie



  acceptsCookies = true;



}


function getexpirydate( nodays){
var UTCstring;
Today = new Date();
nomilli=Date.parse(Today);
Today.setTime(nomilli+nodays*24*60*60*1000);
UTCstring = Today.toUTCString();
return UTCstring;
}




function setCookie(name,value) {


		   if((name==null)||(value==null)){
		   return false;
		   }else{
		//alert (document.cookie)
		   document.cookie = escape(name)+"="+escape(value)+";EXPIRES="+getexpirydate(365);

		   //change date to to relative ...ie

		   return true;
				}
				//alert(document.cookie)  ;


 }












function readCookie(name) {

    if(document.cookie == '') { // there's no cookie, so go no further
	return false;
    } else { // there is a cookie
	var firstChar, lastChar;
	var theBigCookie = document.cookie;
	//PHPSESSID
	//alert (document.cookie)
	//alert(theBigCookie);
	firstChar = theBigCookie.indexOf(name);	// find the start of 'name'
	// alert(firstChar);
	var NN2Hack = firstChar + name.length;
	if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) { // if you found the cookie
	    firstChar += name.length + 1; // skip 'name' and '='
	    lastChar = theBigCookie.indexOf(';', firstChar); // Find the end of the value string (i.e. the next ';').

		if(lastChar == -1) lastChar = theBigCookie.length;
		john = unescape(theBigCookie.substring(firstChar, lastChar));
	    return john;
		//alert (john)
	} else { // If there was no cookie of that name, return false.
	    return false;

	}


    }

} // readCookie







function killCookie(name, path, domain) {



  var theValue = readCookie(name); // We need the value to kill the cookie



  if(theValue) {



      document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:''); // set an already-expired cookie



  }



} // killCookie



function browOverride() {
setCookie('browserOverride','please');
window.location.href="/homepage.asp";

}








// -->















