function setf(obj)

{

document.all.signinform.username.focus();



}

function formcheck(formobj)

{



var alertMsg = "Please complete the following fields:\n";



var l_Msg = alertMsg.length;



	if (formobj.username.value == "")

	{	alertMsg += " - " + " User Name " + "\n";

	}



	if(formobj.password.value == ""){

		alertMsg += " - " + " Password " + "\n";}



	

	if (alertMsg.length == l_Msg){

		usrpass=formobj.username.value + "|" + formobj.password.value;

		SetCookie("usrpass", usrpass , null, "/");

		SetCookie("navtype", 'first' , null, "/");

		SetCookie("firstId", 1 , null, "/");

		SetCookie("lastId", 10 , null, "/");

		return true;

	}else{

		alert(alertMsg);

		return false;

	}



alert(alertMsg);





}

function SetCookie (name,value,expires,path,domain,secure) {

   document.cookie = name + "=" + escape (value) +

                     ((expires) ? "; expires=" + expires.toGMTString() : "") +

                     ((path) ? "; path=" + path : "") +

                     ((domain) ? "; domain=" + domain : "") +

                     ((secure) ? "; secure" : "");

}



function formchecksearch(searchform)

{
	
	words=searchform.name_search.value;

	SetCookie("words", words , null, "/");
	
	SetCookie("navtype", '' , null, "/");

	SetCookie("thispg", '' , null, "/");

	SetCookie("totpg", '' , null, "/");
	  		
		return true;
	

}

function formchecksearch2(searchform2)

{
	
	words=searchform2.address_search.value;

	SetCookie("words", words , null, "/");
	
	SetCookie("navtype", '' , null, "/");

	SetCookie("thispg", '' , null, "/");

	SetCookie("totpg", '' , null, "/");
	  		
		return true;
	

}
function formchecksearch3(searchform3)

{
	
	words=searchform3.city_search.value;

	SetCookie("words", words , null, "/");
	  		
		return true;
	

}
function formchecksearch4(searchform4)

{
	
	words=searchform4.state_search.value;

	SetCookie("words", words , null, "/");
	  		
		return true;
	

}

//if (document.layers)
  //document.captureEvents(Event.KEYDOWN);
  //document.onkeydown =
    //function (evt) { 
      //var keyCode = evt ? (evt.which ? evt.which : evt.keyCode) : event.keyCode;
      //if (keyCode == 13)   
      
      //{
        //searchform.search.focus();
      //}
    //}
	
function setnavid(navtype,id1,id2)

{

SetCookie("navtype", navtype , null, "/");

SetCookie("thispg", id1 , null, "/");

SetCookie("totpg", id2 , null, "/");

return true;	

}


