function nullcheckforrequiredfields()
{
	
	 if ( (document.a.LoginName.value=="") || (document.a.Password.value==""))
	 {
	    alert("Fields cannot be blank, Please fill them before submiting the form");
  	    return false;
	 }
         return true;
		 
}

function alphanumericOnly(Object)
{
	var name=Object.name;
	var str=Object.value;
	var length=str.length;
	var ch;

	if(str=="") return 0;
	//looping from 0 to total length of the string
	for(var i=0;i<length;++i)
	{
		ch=str.charAt(i);
	 //	if((ch=='\r')||(ch>='A' && ch<='Z') || (ch>='a' && ch<='z') || (ch>='0' && ch<='9') || (ch == '_') || (ch == ',')|| (ch == '.') || (ch == ' ')||(ch=='\n'))

	if((ch!='\"') && (ch!='\''))

	
		{
			
		}
		else
		{		
		alert("Special characters are not allowed in this field")
		Object.focus();
		Object.value=""
		return false;
		}
	}
	return 1;
}


