
function val()
{

str=(document.forms.username.value);
p=(document.forms.password.value);
  if(!checkNull(document.forms.username))
  {
     alert("Please Enter UserName");
	 document.forms.username.focus();
	 return false;
  }
  
  if(checkapo(str))
	{   
	alert("Invalid Characters in login name");
	  document.forms.username.focus();
	  return false;
    }
  if(!checkNull(document.forms.password))
  {
     alert("Please Enter Password");
	 document.forms.password.focus();
	 return false;
  }
  
  if(checkapo(p))
    	{
	     alert("Invalid characters in Password");
			 document.forms.password.focus();
		 return false;
        }
     document.forms.action="checklogin.asp";
  document.forms.submit();
  }
  
  function checkNull(strr)
   {
      str=strr.value;
      for(i=0;i<str.length;i++)
      {
         st=str.charAt(i);
         if(st!=" ")
         {
   	          return true;
         }
      }
      strr.value="";
      return false;
  }
  
  
  function checkapo(strr)
  {
	   for(i=0;i<strr.length;i++)
	{
	  st=strr.charAt(i);
		  if(st=="'" || st=='"' || st=='`'|| st=='*' || st=='-')
	       {
     	   return true;
	       }
	}
	
 } 




function links1()
{
val=document.f1.links.options[document.f1.links.selectedIndex].value;
 if (val=="1") 
  {
   return false;
   }else
   {
   
    document.f1.action=val
	document.f1.submit();
    //window.open(val);
    
    //alert(val);
	return false;
	}
    }
	
function goit()
{
a=document.f1.links.value;
if(a!="")
{
window.location=a
}
}

//-->