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" : "");

}


