function sendit()
{
	var name = document.login.UserId.value;
	var pwd = document.login.Password.value;
	if(name.length < 1)
	{
		alert('Please enter User Id ');
		document.login.UserId.focus();
	}
	else if(pwd.length < 1)
	{
		alert('Please enter password');
		document.login.Password.focus();
	}
	else
	{
		document.login.submit();
	}
}
function cancelit()
{
	document.login.UserId.value='';
	document.login.Password.value='';
}

function test() {
var name1=document.frmfeedback.Txtname.value;
if(name1.length < 1)
{
alert("Please enter the name");
document.frmfeedback.Txtname.focus();

return(false);
}
var checkOK = "."+" ";
var firstname= new String(document.frmfeedback.Txtname.value);
var firstnamelen=firstname.length; 
	for (i=0; i < firstnamelen; i++)
	 {
			var firstnamech = firstname.charAt(i)
			if ((firstnamech < "a" || firstnamech >"z") && (firstnamech < "A" ||firstnamech >"Z")&& (firstnamech < '0' || firstnamech > '9') && firstnamech != " " && firstnamech != ".")
			{
			 document.frmfeedback.Txtname.select();
				document.frmfeedback.Txtname.focus();
				alertsay = "Please enter alphanumeric and\""
alertsay = alertsay + checkOK + "\" in the \"" + "First Name" + "\" field.";
					alert(alertsay);
				return(false);
			}
	}
var phone=document.frmfeedback.Txtphoneno.value;
if(phone.length < 1)
{
alert("Please enter the Phone No");
document.frmfeedback.Txtphoneno.focus();
return(false);
}
var pin = new String(document.frmfeedback.Txtphoneno.value);
for (i = 0; i < pin.length; i++)
{
	if ((pin.charAt(i) < '0' || pin.charAt(i) > '9')&&(pin.charAt(i)!="-")&&(pin.charAt(i)!=""))
	 {
alert("Please enter a valid Phone No.");
	  document.frmfeedback.Txtphoneno.select();
		document.frmfeedback.Txtphoneno.focus();
			return (false);
	}
	}
var mobileno = new String(document.frmfeedback.Txtmobileno.value);
for (i = 0; i < mobileno.length; i++)
{
	if ((mobileno.charAt(i) < '0' || mobileno.charAt(i) > '9')&&(mobileno.charAt(i)!="-")&&(mobileno.charAt(i)!=""))
	 {
alert("Please enter a valid Mobile No.");
	  document.frmfeedback.Txtmobileno.select();
		document.frmfeedback.Txtmobileno.focus();
			return (false);
	}
	}

var email1=document.frmfeedback.Txtemailid.value; 
if (document.frmfeedback.Txtemailid.value == "")
{
alert("Please enter Your E-mail address");
		document.frmfeedback.Txtemailid.select();
		document.frmfeedback.Txtemailid.focus();
		return false;
}
var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z]{2,4})+$/;
if (!(filter.test(email1)))
	{
	 alert('Please furnish valid email Id \n (Ex:yourname@somedomain.com)');
	 document.frmfeedback.Txtemailid.focus();
	 document.frmfeedback.Txtemailid.select();
	 	 return(false);
	 }
var comments=document.frmfeedback.Txtcomments.value;
if(comments.length < 1)
{
alert("Please enter the Comments");
document.frmfeedback.Txtcomments.focus();

return(false);
}
return(true);
}

function goToLoanPage(){
	/*alert(frmObject.name);
	return false;*/
	presentId = document.GMFormf84386.GoMenu.value;
	pageUrl = "asp/0100text.asp?presentId=" + presentId + "&headId=19";
	/*alert(pageUrl);
	return false;*/
	document.GMFormf84386.action = pageUrl;
	document.GMFormf84386.submit();
}

