<!--
function setCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDay()+expiredays)
document.cookie=c_name+ "=" +encodeURIComponent(value)+
((expiredays==null) ? "" : ";expires="+exdate.toUTCString()+';path=/')
}	

function getCookie($name)
{
	if(document.cookie.length > 0)
	{
		$first=document.cookie.indexOf($name+'=');
		if($first != -1)
		{
			$first = $first+($name.length+1);
			$last = document.cookie.indexOf(';',$first);
			if($last == -1)$last=document.cookie.length;
			return decodeURIComponent(document.cookie.substring($first,$last));
		}
	}
	return '';
}
//-->
