var path = "";
function ReadCookie(cookieName) {
           var theCookie=""+document.cookie;
           var ind=theCookie.indexOf(cookieName);
           if (ind==-1 || cookieName=="") return ""; 
           var ind1=theCookie.indexOf(';',ind);
           if (ind1==-1) ind1=theCookie.length; 
           return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
        }
function fnDisclaimer(str){
	CurrPath= ReadCookie('Path')   
    if(str=='TRUE')
      {
		  document.cookie = "Disclaimer=TRUE";	
		  window.location.href= CurrPath;
	  }
    else
      {
		  document.cookie = "Disclaimer=FALSE";  
		  window.location.href='default.aspx';
	  }
} 
function fnonloadtest(str)
{  
  document.cookie = "Path="+window.location; 
  str = str.replace('amp;','');   
   ResultFlag = ReadCookie('Disclaimer')    
   if(ResultFlag!='TRUE')
        window.location.href=str;
}
function fnonloadCreate()
{
   ResultFlag = ReadCookie('Disclaimer') 
   if(ResultFlag=="")
     document.cookie = "Disclaimer=FALSE";    
}// JavaScript Document