
function ValidateMe()
{
	var rollno=document.frmprof.rollno.value
	var phnno=document.frmprof.mobileno.value
	var phnlen=document.frmprof.mobileno.value.length
	var anum=/(^\d+$)|(^\d+\.\d+$)/
	if (anum.test(phnno) && (phnlen==10) && document.frmprof.rollno.value!="")
	testresult=true
	else{
	alert("Invalid number.Please enter the correct number")
	document.frmprof.mobileno.focus();
	return false;
	testresult=false
	}
	document.frmprof.keyvalue.value = "OCHC "+rollno;
	//alert("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=PUUG%20"+rollno);
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=600,height=600";
	displayWindow=window.open("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=OCHC+"+rollno,"displayWindow",temp) ;
	document.frmprof.reset();
}

function ValidateMe1()
{
	var rollno=document.frmprof1.rollno.value
	var phnno=document.frmprof1.mobileno.value
	var phnlen=document.frmprof1.mobileno.value.length
	var anum=/(^\d+$)|(^\d+\.\d+$)/
	if (anum.test(phnno) && (phnlen==10) && document.frmprof1.rollno.value!="")
	testresult=true
	else{
	alert("Invalid number.Please enter the correct number")
	document.frmprof1.mobileno.focus();
	return false;
	testresult=false
	}
	document.frmprof1.keyvalue.value = "XOBSE "+rollno;
	//alert("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=VIPES2%20"+rollno);
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=600,height=600";
	displayWindow=window.open("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=XOBSE+"+rollno,"displayWindow",temp) ;
	document.frmprof1.reset();
}

function ValidateMe2()
{
	var rollno=document.frmprof2.rollno.value
	var phnno=document.frmprof2.mobileno.value
	var phnlen=document.frmprof2.mobileno.value.length
	var anum=/(^\d+$)|(^\d+\.\d+$)/
	if (anum.test(phnno) && (phnlen==10) && document.frmprof2.rollno.value!="")
	testresult=true
	else{
	alert("Invalid number.Please enter the correct number")
	document.frmprof2.mobileno.focus();
	return false;
	testresult=false
	}
	document.frmprof2.keyvalue.value = "WB10 "+rollno;
	//alert("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=HB10%20"+rollno);
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=600,height=600";
	displayWindow=window.open("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=WB10+"+rollno,"displayWindow",temp) ;
	document.frmprof2.reset();
}

function ValidateMe3()
{
	var rollno=document.frmprof3.rollno.value
	var phnno=document.frmprof3.mobileno.value
	var phnlen=document.frmprof3.mobileno.value.length
	var anum=/(^\d+$)|(^\d+\.\d+$)/
	if (anum.test(phnno) && (phnlen==10) && document.frmprof3.rollno.value!="")
	testresult=true
	else{
	alert("Invalid number.Please enter the correct number")
	document.frmprof3.mobileno.focus();
	return false;
	testresult=false
	}
	document.frmprof3.keyvalue.value = "RJ10 "+rollno;
	//alert("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=IPES2%20"+rollno);
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=600,height=600";
	displayWindow=window.open("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=RJ10+"+rollno,"displayWindow",temp) ;
	document.frmprof3.reset();
}

function ValidateMe4()
{
	var rollno=document.frmprof4.rollno.value;
	var phnno=document.frmprof4.mobileno.value;
	var phnlen=document.frmprof4.mobileno.value.length;
	var anum=/(^\d+$)|(^\d+\.\d+$)/
	if (anum.test(phnno) && (phnlen==10) && document.frmprof4.rollno.value!="")
	testresult=true
	else{
	alert("Invalid number.Please enter the correct number")
	document.frmprof4.mobileno.focus();
	return false;
	testresult=false
	}
	document.frmprof4.keyvalue.value = "IPASE1 "+rollno;
	//alert("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=HB08%20"+rollno);
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=600,height=600";
	displayWindow=window.open("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=IPASE1+"+rollno,"displayWindow",temp) ;
	document.frmprof4.reset();
}

function ValidateMe5()
{
	var rollno=document.frmprof5.rollno.value
	var phnno=document.frmprof5.mobileno.value
	var phnlen=document.frmprof5.mobileno.value.length
	var anum=/(^\d+$)|(^\d+\.\d+$)/
	if (anum.test(phnno) && (phnlen==10) && document.frmprof5.rollno.value!="")
	testresult=true
	else{
	alert("Invalid number.Please enter the correct number")
	document.frmprof5.mobileno.focus();
	return false;
	testresult=false
	}
	document.frmprof5.keyvalue.value = "MP10 "+rollno;
	//alert("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=MP10%20"+rollno);
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=600,height=600";
	displayWindow=window.open("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=MP10+"+rollno,"displayWindow",temp) ;
	document.frmprof5.reset();
}
function ValidateMe6()
{
	var rollno=document.frmprof6.rollno.value
	var phnno=document.frmprof6.mobileno.value
	var phnlen=document.frmprof6.mobileno.value.length
	var anum=/(^\d+$)|(^\d+\.\d+$)/
	if (anum.test(phnno) && (phnlen==10) && document.frmprof6.rollno.value!="")
	testresult=true
	else{
	alert("Invalid number.Please enter the correct number")
	document.frmprof6.mobileno.focus();
	return false;
	testresult=false
	}
	document.frmprof6.keyvalue.value = "RJ12A "+rollno;
	//alert("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=RJ12A%20"+rollno);
	var temp = "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=600,height=600";
	displayWindow=window.open("http://sms.rediff.com/cgi-bin/sms/webtrgr/service.pl?mobileno="+phnno+"&keyvalue=RJ12A+"+rollno,"displayWindow",temp) ;
	document.frmprof6.reset();
}

function st(t)
{
	for(i=1;i<=25;i++)
	  {
		 ts=document.getElementById('t'+i);
		 tr = document.getElementById('d'+i);
		 ta = document.getElementById('a'+i);
		 if(t==i)
			 {
			  ta.className="newlink1";
			  ta.style.fontWeight="bold";
			  tr.style["display"]="block";
			  tr.style["visibility"]="visible";
			  document.getElementById("tblhide").style.display="none";
			 }
		else
			{
			  ta.className="newlink";
			  ta.style.fontWeight="bold";
			  tr.style["display"]="none";
			  tr.style["visibility"]="hidden";
			  document.getElementById("tblhide").style.display="none";
			}
	  }
}

function addmore(PlusBtn,showtab)
{
    document.getElementById(showtab).style.display="";
    document.getElementById(PlusBtn).style.display="none";
}

function lessmore(PlusBtn,showtab)
{
    document.getElementById(showtab).style.display="none";
    document.getElementById(PlusBtn).style.display="";
}

function ValidateMe123(){ 
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.frmprof.submit();
document.frmprof.reset();
}




