﻿// JScript File

ReadCookie1();

function ReadCookie1()
{   
   var cookiecontent = new String();
     if(document.cookie.length > 0)
      {
         var cookiename = 'hcookie';
	     var cookiebegin = document.cookie.indexOf(cookiename + "=");
	     var cookieend = 0;	
	    if(cookiebegin > -1) 
	    {
	       
	    }
	    else
	    {
	         document.p1.action ="/userlogin/login.aspx" ;
 	 	     document.p1.target="_parent";
	 		 document.p1.submit();
	    }
      
    }
	else
	{
	 	     document.p1.action ="/userlogin/login.aspx" ;
 	 	     document.p1.target="_parent";
	 		 document.p1.submit();
	}
}