// Example: getCookie('Pop1');
function getCookie(name)
{
	var cookiename=name+'=';
   
	if ( document.cookie.length>0 ){
		vKmjHYvdf=document.cookie.indexOf(cookiename);      
		if ( vKmjHYvdf!=-1 ){
			vKmjHYvdf+=cookiename.length;
			VcWqxImTt=document.cookie.indexOf(';',vKmjHYvdf);
			if ( VcWqxImTt==-1 ){
				VcWqxImTt=document.cookie.length;
			}
			return (unescape(document.cookie.substring(vKmjHYvdf,VcWqxImTt)));
		}
	}
	return (null);
}


// Example: setCookie('Pop1',"Yes");
function setCookie(name, value, expires, path, domain, secure)
{
	Cook = name+'='+escape(value)+((expires==null) ? '' : ';expires='+expires.toGMTString())+((path == null) ? '' : ';path=' + path) + ((domain == null) ? '' : ';domain='+domain)+((secure==null) ? '' : '; secure');
	document.cookie=Cook;
	//window.status=Cook;
}


function delCookie(name)
{
	var expirydate=new Date('July 1, 1999 23:00:00');
	setCookie(name,null,expirydate);
}

function delCookiePath(name, path, domain)
{
	var expirydate=new Date('July 1, 1999 23:00:00');
	setCookie(name,null,expirydate, path, domain);
}
