//document.write('<a href="aboutus.html"><td background="images/aboutus1.jpg" width="104" height="46" onmouseover="this.background=\'images/aboutus2.jpg\'" onmouseout="this.background=\'images/aboutus1.jpg\'" style="cursor:hand"></td></a>');

function changeImage(path)
{
	document.getElementById(path).src="images/"+ path +"2.jpg";
}
function defautImage(path)
{
	document.getElementById(path).src="images/"+ path +"1.jpg";
}


function header1()
{	
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif"><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><td width="91" height="46"><a href="index.html" onmouseover="changeImage(\'home\');" onmouseout="defautImage(\'home\');">');
	document.write('<img border="0" src="images/home2.jpg" width="91" height="46" id="home"></a></td>');
	document.write('<td width="104" height="46"><a href="aboutus.html" onmouseover="changeImage(\'aboutus\');" onmouseout="defautImage(\'aboutus\');">');
	document.write('<img border="0" src="images/aboutus1.jpg" width="104" height="46" id="aboutus"></a></td>');
	document.write('<td width="129" height="46"><a href="ourcourses.html" onmouseover="changeImage(\'ourcourses\');" onmouseout="defautImage(\'ourcourses\');">');
	document.write('<img border="0" src="images/ourcourses1.jpg" width="129" height="46" id="ourcourses"></td>');
	document.write('<td width="119" height="46"><a href="examinfo.html" onmouseover="changeImage(\'examinfo\');" onmouseout="defautImage(\'examinfo\');">');
	document.write('<img border="0" src="images/examinfo1.jpg" width="119" height="46" id="examinfo"></a></td>');
	document.write('<td width="205" height="46"><a href="business.html" onmouseover="changeImage(\'business\');" onmouseout="defautImage(\'business\');">');
	document.write('<img border="0" src="images/business1.jpg" width="205" height="46" id="business"></a></td>');
	document.write('<td width="131" height="46"><a href="gurugram.html" onmouseover="changeImage(\'gurugram\');" onmouseout="defautImage(\'gurugram\');">');
	document.write('<img border="0" src="images/gurugram1.jpg" width="131" height="46" id="gurugram"></a></td>');
	document.write('</tr></table></td></tr></table>');


	/*document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779"><tr>');
	document.write('<td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif">');
	document.write('<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><a href="index.html"><td width="91" height="46" background="images/home2.jpg" style="cursor:hand">&nbsp;</td></a><a href="aboutus.html"><td background="images/aboutus1.jpg" width="104" height="46" onmouseover="this.background=\'images/aboutus2.jpg\'" onmouseout="this.background=\'images/aboutus1.jpg\'" style="cursor:hand">&nbsp;</td></a>');
	document.write('<a href="ourcourses.html"><td background="images/ourcourses1.jpg" width="129" height="46" onmouseover="this.background=\'images/ourcourses2.jpg\'" onmouseout="this.background=\'images/ourcourses1.jpg\'" style="cursor:hand">&nbsp;</td></a>');
	document.write('<a href="examinfo.html"><td background="images/examinfo1.jpg" width="119" height="46" onmouseover="this.background=\'images/examinfo2.jpg\'" onmouseout="this.background=\'images/examinfo1.jpg\'" style="cursor:hand">&nbsp;</td></a>');
	document.write('<a href="business.html"><td background="images/business1.jpg" width="205" height="46" onmouseover="this.background=\'images/business2.jpg\'" onmouseout="this.background=\'images/business1.jpg\'" style="cursor:hand">&nbsp;</td></a>');
	document.write('<a href="gurugram.html"><td background="images/gurugram1.jpg" width="131" height="46" onmouseover="this.background=\'images/gurugram2.jpg\'" onmouseout="this.background=\'images/gurugram1.jpg\'" style="cursor:hand">&nbsp;</td></a>');
	document.write('</tr></table></td></tr></table>');*/
}




function header2()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif"><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><td width="91" height="46"><a href="index.html" onmouseover="changeImage(\'home\');" onmouseout="defautImage(\'home\');">');
	document.write('<img border="0" src="images/home1.jpg" width="91" height="46" id="home"></a></td>');
	document.write('<td width="104" height="46"><a href="aboutus.html" onmouseover="changeImage(\'aboutus\');" onmouseout="defautImage(\'aboutus\');">');
	document.write('<img border="0" src="images/aboutus2.jpg" width="104" height="46" id="aboutus"></a></td>');
	document.write('<td width="129" height="46"><a href="ourcourses.html" onmouseover="changeImage(\'ourcourses\');" onmouseout="defautImage(\'ourcourses\');">');
	document.write('<img border="0" src="images/ourcourses1.jpg" width="129" height="46" id="ourcourses"></td>');
	document.write('<td width="119" height="46"><a href="examinfo.html" onmouseover="changeImage(\'examinfo\');" onmouseout="defautImage(\'examinfo\');">');
	document.write('<img border="0" src="images/examinfo1.jpg" width="119" height="46" id="examinfo"></a></td>');
	document.write('<td width="205" height="46"><a href="business.html" onmouseover="changeImage(\'business\');" onmouseout="defautImage(\'business\');">');
	document.write('<img border="0" src="images/business1.jpg" width="205" height="46" id="business"></a></td>');
	document.write('<td width="131" height="46"><a href="gurugram.html" onmouseover="changeImage(\'gurugram\');" onmouseout="defautImage(\'gurugram\');">');
	document.write('<img border="0" src="images/gurugram1.jpg" width="131" height="46" id="gurugram"></a></td>');
	document.write('</tr></table></td></tr></table>');
}

function header3()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif"><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><td width="91" height="46"><a href="index.html" onmouseover="changeImage(\'home\');" onmouseout="defautImage(\'home\');">');
	document.write('<img border="0" src="images/home1.jpg" width="91" height="46" id="home"></a></td>');
	document.write('<td width="104" height="46"><a href="aboutus.html" onmouseover="changeImage(\'aboutus\');" onmouseout="defautImage(\'aboutus\');">');
	document.write('<img border="0" src="images/aboutus1.jpg" width="104" height="46" id="aboutus"></a></td>');
	document.write('<td width="129" height="46"><a href="ourcourses.html" onmouseover="changeImage(\'ourcourses\');" onmouseout="defautImage(\'ourcourses\');">');
	document.write('<img border="0" src="images/ourcourses2.jpg" width="129" height="46" id="ourcourses"></td>');
	document.write('<td width="119" height="46"><a href="examinfo.html" onmouseover="changeImage(\'examinfo\');" onmouseout="defautImage(\'examinfo\');">');
	document.write('<img border="0" src="images/examinfo1.jpg" width="119" height="46" id="examinfo"></a></td>');
	document.write('<td width="205" height="46"><a href="business.html" onmouseover="changeImage(\'business\');" onmouseout="defautImage(\'business\');">');
	document.write('<img border="0" src="images/business1.jpg" width="205" height="46" id="business"></a></td>');
	document.write('<td width="131" height="46"><a href="gurugram.html" onmouseover="changeImage(\'gurugram\');" onmouseout="defautImage(\'gurugram\');">');
	document.write('<img border="0" src="images/gurugram1.jpg" width="131" height="46" id="gurugram"></a></td>');
	document.write('</tr></table></td></tr></table>');
}
function header4()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif"><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><td width="91" height="46"><a href="index.html" onmouseover="changeImage(\'home\');" onmouseout="defautImage(\'home\');">');
	document.write('<img border="0" src="images/home1.jpg" width="91" height="46" id="home"></a></td>');
	document.write('<td width="104" height="46"><a href="aboutus.html" onmouseover="changeImage(\'aboutus\');" onmouseout="defautImage(\'aboutus\');">');
	document.write('<img border="0" src="images/aboutus1.jpg" width="104" height="46" id="aboutus"></a></td>');
	document.write('<td width="129" height="46"><a href="ourcourses.html" onmouseover="changeImage(\'ourcourses\');" onmouseout="defautImage(\'ourcourses\');">');
	document.write('<img border="0" src="images/ourcourses1.jpg" width="129" height="46" id="ourcourses"></td>');
	document.write('<td width="119" height="46"><a href="examinfo.html" onmouseover="changeImage(\'examinfo\');" onmouseout="defautImage(\'examinfo\');">');
	document.write('<img border="0" src="images/examinfo2.jpg" width="119" height="46" id="examinfo"></a></td>');
	document.write('<td width="205" height="46"><a href="business.html" onmouseover="changeImage(\'business\');" onmouseout="defautImage(\'business\');">');
	document.write('<img border="0" src="images/business1.jpg" width="205" height="46" id="business"></a></td>');
	document.write('<td width="131" height="46"><a href="gurugram.html" onmouseover="changeImage(\'gurugram\');" onmouseout="defautImage(\'gurugram\');">');
	document.write('<img border="0" src="images/gurugram1.jpg" width="131" height="46" id="gurugram"></a></td>');
	document.write('</tr></table></td></tr></table>');
}
function header5()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif"><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><td width="91" height="46"><a href="index.html" onmouseover="changeImage(\'home\');" onmouseout="defautImage(\'home\');">');
	document.write('<img border="0" src="images/home1.jpg" width="91" height="46" id="home"></a></td>');
	document.write('<td width="104" height="46"><a href="aboutus.html" onmouseover="changeImage(\'aboutus\');" onmouseout="defautImage(\'aboutus\');">');
	document.write('<img border="0" src="images/aboutus1.jpg" width="104" height="46" id="aboutus"></a></td>');
	document.write('<td width="129" height="46"><a href="ourcourses.html" onmouseover="changeImage(\'ourcourses\');" onmouseout="defautImage(\'ourcourses\');">');
	document.write('<img border="0" src="images/ourcourses1.jpg" width="129" height="46" id="ourcourses"></td>');
	document.write('<td width="119" height="46"><a href="examinfo.html" onmouseover="changeImage(\'examinfo\');" onmouseout="defautImage(\'examinfo\');">');
	document.write('<img border="0" src="images/examinfo1.jpg" width="119" height="46" id="examinfo"></a></td>');
	document.write('<td width="205" height="46"><a href="business.html" onmouseover="changeImage(\'business\');" onmouseout="defautImage(\'business\');">');
	document.write('<img border="0" src="images/business2.jpg" width="205" height="46" id="business"></a></td>');
	document.write('<td width="131" height="46"><a href="gurugram.html" onmouseover="changeImage(\'gurugram\');" onmouseout="defautImage(\'gurugram\');">');
	document.write('<img border="0" src="images/gurugram1.jpg" width="131" height="46" id="gurugram"></a></td>');
	document.write('</tr></table></td></tr></table>');
}

function header6()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif"><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><td width="91" height="46"><a href="index.html" onmouseover="changeImage(\'home\');" onmouseout="defautImage(\'home\');">');
	document.write('<img border="0" src="images/home1.jpg" width="91" height="46" id="home"></a></td>');
	document.write('<td width="104" height="46"><a href="aboutus.html" onmouseover="changeImage(\'aboutus\');" onmouseout="defautImage(\'aboutus\');">');
	document.write('<img border="0" src="images/aboutus1.jpg" width="104" height="46" id="aboutus"></a></td>');
	document.write('<td width="129" height="46"><a href="ourcourses.html" onmouseover="changeImage(\'ourcourses\');" onmouseout="defautImage(\'ourcourses\');">');
	document.write('<img border="0" src="images/ourcourses1.jpg" width="129" height="46" id="ourcourses"></td>');
	document.write('<td width="119" height="46"><a href="examinfo.html" onmouseover="changeImage(\'examinfo\');" onmouseout="defautImage(\'examinfo\');">');
	document.write('<img border="0" src="images/examinfo1.jpg" width="119" height="46" id="examinfo"></a></td>');
	document.write('<td width="205" height="46"><a href="business.html" onmouseover="changeImage(\'business\');" onmouseout="defautImage(\'business\');">');
	document.write('<img border="0" src="images/business1.jpg" width="205" height="46" id="business"></a></td>');
	document.write('<td width="131" height="46"><a href="gurugram.html" onmouseover="changeImage(\'gurugram\');" onmouseout="defautImage(\'gurugram\');">');
	document.write('<img border="0" src="images/gurugram2.jpg" width="131" height="46" id="gurugram"></a></td>');
	document.write('</tr></table></td></tr></table>');
}

function header7()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td><table border="0" cellpadding="0" cellspacing="0" width="779">');
	document.write('<tr><td width="255" height="67"><img border="0" src="images/logo.jpg" width="255" height="67"></td>');
	document.write('<td width="524" background="images/newtopbg.gif"><div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width="60%" align="right"><embed width="297" height="67" src="topbanner.swf" menu="false" quality="best"></td>');
	document.write('<td width="40%"><p align="center"><a href="enquiry.html"><img border="0" src="images/sendenquiry.gif" width="192" height="50"></a></td>');
	document.write('</tr></table></center></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="779" height="46">');
	document.write('<tr><td width="91" height="46"><a href="index.html" onmouseover="changeImage(\'home\');" onmouseout="defautImage(\'home\');">');
	document.write('<img border="0" src="images/home1.jpg" width="91" height="46" id="home"></a></td>');
	document.write('<td width="104" height="46"><a href="aboutus.html" onmouseover="changeImage(\'aboutus\');" onmouseout="defautImage(\'aboutus\');">');
	document.write('<img border="0" src="images/aboutus1.jpg" width="104" height="46" id="aboutus"></a></td>');
	document.write('<td width="129" height="46"><a href="ourcourses.html" onmouseover="changeImage(\'ourcourses\');" onmouseout="defautImage(\'ourcourses\');">');
	document.write('<img border="0" src="images/ourcourses1.jpg" width="129" height="46" id="ourcourses"></td>');
	document.write('<td width="119" height="46"><a href="examinfo.html" onmouseover="changeImage(\'examinfo\');" onmouseout="defautImage(\'examinfo\');">');
	document.write('<img border="0" src="images/examinfo1.jpg" width="119" height="46" id="examinfo"></a></td>');
	document.write('<td width="205" height="46"><a href="business.html" onmouseover="changeImage(\'business\');" onmouseout="defautImage(\'business\');">');
	document.write('<img border="0" src="images/business1.jpg" width="205" height="46" id="business"></a></td>');
	document.write('<td width="131" height="46"><a href="gurugram.html" onmouseover="changeImage(\'gurugram\');" onmouseout="defautImage(\'gurugram\');">');
	document.write('<img border="0" src="images/gurugram1.jpg" width="131" height="46" id="gurugram"></a></td>');
	document.write('</tr></table></td></tr></table>');
}


function internalimage()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="779"><tr><td background="images/internal/internaltopmain.jpg" width="779" height="101">&nbsp;</td></tr></table>');
}




function footer()
{
	//document.write('<center><table border="0" cellpadding="0" cellspacing="0" width="90%">');
	//document.write('<tr><td width="14%" align="center"><a href="index.html">HOME</a></td><td width="14%" align="center"><a href="aboutus.html">ABOUT US</a></td> <td width="14%" align="center"><a href="ourcourses.html">OUR COURSES</a></td><td width="14%" align="center"><a href="faculty.html">FACULTIES</a></td><td width="14%" align="center"><a href="gurugram.html">GURU GRAM</a></td><td width="16%" align="center"><A HREF="loginform.html">STUDENT LOGIN</A></td><td width="14%" align="center"><a href="contact.html">CONTACT</a></td></tr></table></center>');
	//document.write('<center><table border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td width="12%" align="center"><a href="examinfo.html">DISCLAIMER EXAM INFO</a></td><td width="20%" align="center"><a href="business.html">TERMS OF USE BUSINESS PARTNERSHIP</a></td> <td width="14%" align="center"><a href="privacypolicy.html">PRIVACY POLICY</a></td><td width="14%" align="center"><a href="termsofuse.html">TERMS OF USE</a></td><td width="14%" align="center"><a href="privacypolicy.html">PRIVACY POLICY</a></td><td width="16%" align="center"><A HREF="loginform.html">STUDENT LOGIN</A></td><td width="12%" align="center"><a href="contact.html">CONTACT</a></td></tr></table></center>');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="90%" align="center"><tr>');
	document.write('<td width="15%" align="center"><font color="#707070" face="Verdana" size="1"><a href="disclaimer.html">DISCLAIMER</a></font></td>');
	document.write('<td width="15%" align="center"><font color="#707070" face="Verdana" size="1"><a href="termsofuse.html">TERMS OF USE</a></font></td>');
	document.write('<td width="15%" align="center"><font color="#707070" face="Verdana" size="1"><a href="privacypolicy.html">PRIVACY POLICY</a></font></td>');
	document.write('<td width="15%" align="center"><font color="#707070" face="Verdana" size="1"><a href="loginform.html">STUDENT LOGIN</a></font></td>');
	document.write('<td width="15%" align="center"><font color="#707070" face="Verdana" size="1"><a href="enquiry.html">ENQUIRY</a></font></td>');
	document.write('<td width="15%" align="center"><font color="#707070" face="Verdana" size="1"><a href="contact.html">CONTACT US</a></font></td></tr></table>');
	document.write('<br><tr class="bodytext"><td width="100%" background="images/dot.jpg" height="1"></td></tr>');          
    document.write('<tr><td width="100%" height="5"></td></tr>');    
	document.write('<tr><td width="100%"><p align="center"><font class="bodytext">Copyright &copy; 2010 www.iitscholars.com&nbsp;|&nbsp;Site powered by <a href="http://www.iitscholars.com" target="_blank">PARAGON SOFTWARE</a></font></td></tr>');
}


function check_registrationform()
{
	
	docf=document.frm;
	pass=docf.password.value;
	conf_pass=docf.conf_pass.value;
	
	if(docf.type.value=='')
	{
		alert("Please Select your Type");
		docf.type.focus();
		return false;
	}
	if(docf.loginid.value=='')
	{
		alert("Please enter your Login name");
		docf.loginid.focus();
		return false;
	}
	if(docf.password.value=='')
	{
		alert("Please enter your Password");
		docf.password.focus();
		return false;
	}
	
	if(docf.conf_pass.value=='')
	{
		alert("Please enter your Confirm Password");
		docf.conf_pass.focus();
		return false;
	}

	if(docf.orgname.value=='')
	{
		alert("Enter your School/Organization Name");
		docf.orgname.focus();
		return false;
	}

	if(docf.type.value=='Teacher' && docf.subject.value=='')
	{
		alert("Select the Subject in which you expert");
		docf.subject.focus();
		return false;		
	}

	if(docf.phone.value=='')
	{
		alert("Enter your Phone No");
		docf.phone.focus();
		return false;
	}

	if(docf.email.value=='')
	{
		alert("Please enter your Email ID");
		docf.email.focus();
		return false;
	}
	if(pass!=conf_pass)
	{
		alert("Your Password does not match.Please retype your password !");
		docf.password.focus();
		return false;
	}

	return validate_form(docf);
}


function check_enquiryform()
{
	
	docf=document.frm;
	if(docf.name.value=='')
	{
		alert("Please Enter Your Name");
		docf.name.focus();
		return false;
	}
	if(docf.address.value=='')
	{
		alert("Please enter your Address");
		docf.address.focus();
		return false;
	}
	if(docf.city.value=='')
	{
		alert("Please enter your City");
		docf.city.focus();
		return false;
	}
	
	if(docf.center.value=='')
	{
		alert("Please enter your Center");
		docf.center.focus();
		return false;
	}

	if(docf.phone.value=='')
	{
		alert("Please enter your Contact No !");
		docf.phone.focus();
		return false;
	}

	if(docf.email.value=='')
	{
		alert("Please enter your Email ID");
		docf.email.focus();
		return false;
	}
	
	if(docf.enquiry.value=='')
	{
		alert("Please enter your Enquiry");
		docf.enquiry.focus();
		return false;
	}
	return validate_form(docf);
	
}



function check_franchiseform()
{	
	docf=document.frm;
	if(docf.name.value=='')
	{
		alert("Please Enter Your Name");
		docf.name.focus();
		return false;
	}	

	if(docf.designation.value=='')
	{
		alert("Please enter your Designation");
		docf.designation.focus();
		return false;
	}

	if(docf.organization.value=='')
	{
		alert("Please en  ter your Organization");
		docf.organization.focus();
		return false;
	}

	if(docf.contactno.value=='')
	{
		alert("Please enter your Contact Number");
		docf.contactno.focus();
		return false;
	}

	if(docf.email.value=='')
	{
		alert("Please enter your Email ID");
		docf.email.focus();
		return false;
	}

	if(docf.address.value=='')
	{
		alert("Please enter your Address");
		docf.address.focus();
		return false;
	}
	if(docf.city.value=='')
	{
		alert("Please enter your City");
		docf.city.focus();
		return false;
	}
	
	if(docf.interestedcity.value=='')
	{
		alert("Please enter your Interested City");
		docf.interestedcity.focus();
		return false;
	}

	if(docf.messages.value=='')
	{
		alert("Please enter your Message !");
		docf.messages.focus();
		return false;
	}	
	return validate_form(docf);
	
}






function validate_email(field,alerttxt)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
  		{
  			alert(alerttxt);
  			return false;
  		}
		else 
		{
			return true;
		}
	}
	
}


function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_email(email,"Not a valid e-mail address!")==false)
  		{
  			email.focus();
  			return false;
  		}
	}
	
}


function checkloginform()
{
	
	docf=document.frm;
	if(docf.type.value=='')
	{
		alert("Please Select your Type");
		docf.type.focus();
		return false;
	}
	if(docf.loginid.value=='')
	{
		alert("Please enter your Login name");
		docf.loginid.focus();
		return false;
	}
	if(docf.password.value=='')
	{
		alert("Please enter your Password");
		docf.password.focus();
		return false;
	}
}


function checkpasswordform()
{
	docf=document.frm;
	if(docf.oldpassword.value=='')
	{
		alert("Please enter your Old Password");
		docf.oldpassword.focus();
		return false;
	}
	if(docf.newpassword.value=='')
	{
		alert("Please enter your New Password");
		docf.newpassword.focus();
		return false;
	}

}



function check_memberdetails()
{
	
	docf=document.frm;
	if(docf.name.value=='')
	{
		alert("Please Enter Your Name");
		docf.name.focus();
		return false;
	}
	if(docf.father.value=='')
	{
		alert("Please enter your Father's Name");
		docf.father.focus();
		return false;
	}
	if(docf.present.value=='')
	{
		alert("Please enter your Present Address");
		docf.present.focus();
		return false;
	}
	
	if(docf.permanent.value=='')
	{
		alert("Please enter your Permanent Address");
		docf.permanent.focus();
		return false;
	}

	if(docf.phone.value=='')
	{
		alert("Please enter your Contact No !");
		docf.phone.focus();
		return false;
	}

	if(docf.email.value=='')
	{
		alert("Please enter your Email ID");
		docf.email.focus();
		return false;
	}
	
	return validate_form(docf);
	
}


function check_help()
{
	
	docf=document.frm;
	if(docf.name.value=='')
	{
		alert("Please Enter Your Name");
		docf.name.focus();
		return false;
	}
	if(docf.email.value=='')
	{
		alert("Please enter your Email Address");
		docf.email.focus();
		return false;
	}

	/*if(docf.problem.checked)
	
		check=true;
	else
		check=false;*/

	if(docf.problem.value=='')
	{
		alert("Please select your Problem Area");
		docf.problem.focus();
		return false;
	}

	if(docf.comment.value=='')
	{
		alert("Please enter Comments");
		docf.comment.focus();
		return false;
	}	
	return validate_form(docf);
}


function check_feedbackform()
{	
	docf=document.frm;
	if(docf.name.value=='')
	{
		alert("Please Enter Your Name");
		docf.name.focus();
		return false;
	}
	if(docf.email.value=='')
	{
		alert("Please enter your Email Address");
		docf.email.focus();
		return false;
	}
	if(docf.comment.value=='')
	{
		alert("Please enter Comments");
		docf.comment.focus();
		return false;
	}	
	return validate_form(docf);
}



function check_advertise()
{	
	docf=document.frm;
	if(docf.fname.value=='')
	{
		alert("Please Enter Your First Name");
		docf.fname.focus();
		return false;
	}
	if(docf.lname.value=='')
	{
		alert("Please Enter Your Last Name");
		docf.lname.focus();
		return false;
	}
	if(docf.email.value=='')
	{
		alert("Please enter your Email Address");
		docf.email.focus();
		return false;
	}
	return validate_form(docf);
}