function menu (whichMenu,whatState){
	if (document.getElementById)
	{
	document.getElementById(whichMenu).style.visibility = whatState;
	}
	else {document[whichMenu].visibility = whatState;}
}

function ValidateMe()
{
		var phnno=document.frmprof.mobileno.value
		var phnlen=document.frmprof.mobileno.value.length
		var anum=/(^\d+$)|(^\d+\.\d+$)/
		if (anum.test(phnno) && (phnlen==10))
		testresult=true
		else{
		alert("Invalid number.Please enter the correct number")
		document.frmprof.mobileno.focus();
		return false;
		testresult=false
		}
		document.frmprof.submit();
		document.frmprof.reset();

}

function ValidateMe1()
{
		var phnno=document.frmprof1.mobileno.value
		var phnlen=document.frmprof1.mobileno.value.length
		var anum=/(^\d+$)|(^\d+\.\d+$)/
		if (anum.test(phnno) && (phnlen==10))
		testresult=true
		else{
		alert("Invalid number.Please enter the correct number")
		document.frmprof1.mobileno.focus();
		return false;
		testresult=false
		}
		document.frmprof1.submit();
		document.frmprof1.reset();

}

function ValidateMe2(){ 
var phnno = document.frmprof2.mobileno.value;
var phnlen = document.frmprof2.mobileno.value.length;
var anum=/(^\d+$)|(^\d+\.\d+$)/
;
if ((anum.test(phnno)) && (phnlen==10)) {
testresult=true
;
} else {
alert("Invalid number.Please enter the correct number")
;
document.frmprof2.mobileno.focus();
return false;
testresult=false
;
}
document.frmprof2.submit();
document.frmprof2.reset();
}

