﻿<!--//
function setfocus()
{
  document.login.userid.focus();
  document.login.userid.select();
}

function checkForm() 
	{
		//window.alert("checkForm function");
			
			
	    if (document.login.userid.value <= " ") 
		{
			window.alert("Please Enter a Screen Name");
			document.login.userid.focus();
			document.login.userid.select();
			return false;
		}
		else
		{
		  
			if (document.login.password.value <= " ") 
			{
				window.alert("Please Enter a Password");
				document.login.password.focus();
				document.login.password.select();
				return false;
			}
			else
			{
			        //========================================================================================== 
			        //11/26/07 check to see if a cookies are turned on by setting a cookie and then try to read it
			        // we are doing this to try and prevent getting reader comment e-mail to the editors without 
			        // the person's e-mail address in the e-mail
			        //==========================================================================================
			        //window.alert("test");
				    document.cookie="temp=a; ";
				    cookies=document.cookie;
                    startpos=cookies.indexOf("temp") + 5;
                    endpos=startpos + 1;
                    //endpos=cookies.length;
                    //window.alert("startpos = " + startpos);
                    //window.alert("endpos = " + endpos);
                    //if (endpos==-1) endpos=cookies.length;
                    tempcookievalue=cookies.substring(startpos,endpos);  
                    // No cookie set
                    //window.alert("Please Turn On Cookies Before Continuing1 = " + tempcookievalue);
                    //return false;
                    if (tempcookievalue != "a") 
                    {
                      // No cookie set
                      window.alert("Please Modify Your Browser Settings To Allow Cookies From Our Website Before Continuing");
                      return false;
                    }
                    else
			        {
			        return true;
			        }   
			}	
    	}
	}
-->


