

function fnsubmit()
	{
	
	  if(document.Login.user_id.value=="")
		{
			alert("The UserName cannot be empty");
			document.Login.user_id.focus();
			return false;
		}
	   if(document.Login.user_password.value=="")
		{
			alert("The Password field  cannot be empty");
			document.Login.user_password.focus();
			return false;
		}
       document.Login.method="post";
	   document.Login.action="custom.asp";
	   document.Login.submit();
    
		}

function fnSearch(){

	if(document.search.query.value=="")
		{
			alert("Please Enter Search Criteria");
			document.search.query.focus();
			return false;
		}

      document.search.method="post";
	   document.search.action="searchResults.asp";
	   document.search.submit();


}

