


function footer_quiz(){
document.write('<a href="http://www.mapsofindia.com/joinus.html" class="footerlinks"><font color=red>Join Us</font></a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/sitemap.htm" class="footerlinks">Site Map</font></a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/disclaim.htm" class="footerlinks">Disclaimer</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/faq.html" class="footerlinks">FAQs</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/maps/india/office-location.html" class="footerlinks">Our Office Location</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/agree.htm" class="footerlinks">Surfing Agreement</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/mapserv/recommend11" class="footerlinks">Recommend this Site</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/affiliatenetwork.htm" class="footerlinks">Our Affiliates</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/forms/suggestamap.htm" class="footerlinks">Suggest a Map</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/advertisewithus.htm" class="footerlinks">Advertise with Us</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/wallpapers/index.html" class="footerlinks">Wallpapers</a>&nbsp;|&nbsp;<a href="http://www.dgreetings.com/" class="footerlinks" target="_blank">Greeting Cards</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/screensavers/index.html" class="footerlinks">Screen Savers</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/productprofile.htm" class="footerlinks">Product Portfolio</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/copyright/index.html" class="footerlinks">Copyright &amp; Terms of Use</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/forms/affiliate.htm" class="footerlinks">Be Our Affiliate</a>&nbsp;|&nbsp;<a href="javascript:void[0]" class="footerlinks" onclick="mailme();">Join Mailing List</a><!-- &nbsp;|&nbsp;<a href="http://www.mapsofindia.com/resellers/search_index.php" class="footerlinks" style="text-decoration:none;"><font face="arial" color="#C80C38" style="font-size:12px;font-weight:bold;">Dealer Locator</font></a> -->&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/poweryoursearch.htm" class="footerlinks">Power Your Map Search</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/privacy-policy/index.html" class="footerlinks">Privacy Policy</a>&nbsp;|&nbsp;<a href="http://www.mapsofindia.com/become-our-sponsor.html" style="text-decoration:none;" class="footerlinks">Become Our Sponsor</a><table cellpadding=5 cellspacing=0 border=0 width="100%" align="center" bgcolor="white" style="border:1px solid blue;"><tr><td valign="bottom" width="60%"><a href="http://www.infobase.co.in" target="_blank"><img src="http://www.mapsofindia.com/images/homeimages/comparelogo.jpg" width="74" height="87" border="0" vspace=5 alt="Compare Infobase Limited" align="left"></a><a href="http://www.infobase.co.in" target="_blank" style="text-decoration:none;"><font face="verdana" color="#526FB5" style="FONT-SIZE: 11px"><b>Compare Infobase Limited</b></a><BR><font face="verdana" color="#686868" style="FONT-SIZE: 11px">(An ISO 9001:2000 Certified Company)</font><font face="verdana" color="#526FB5" style="FONT-SIZE: 11px"><br>C-62, Community Center, Janakpuri, New Delhi-58 (India)<br>Tel : +91-11-25542045, 41588013, 41588014 <BR>Hotline Nos. : +91-11- 41574999, 41574888, 41574890<BR>You may contact between 08.00 to 20.00 hours IST <br>Fax : + 91-11-25547264   &nbsp;&nbsp;Mobile : +91(0) 9871399025<br><A href="mailto:solutions@mapsofindia.com?cc=solutions@mapsofindia.com"><font face="verdana" color="#526FB5" style="FONT-SIZE: 11px"><b>solutions@mapsofindia.com</b></font></a></font></td><td width="40%" valign="bottom"><div align="center"><font face="verdana" color="#526FB5" style="font-size:11px;"><b>We accept online payments through : </b> </font><img src="http://www.mapsofindia.com/images/homeimages/mastercard.gif" width="62" height="39" alt="Master Card" border="0">&nbsp;&nbsp;&nbsp;<img src="http://www.mapsofindia.com/images/homeimages/icici.gif" width="94" height="73" alt="ICICI" border="0">&nbsp;&nbsp;&nbsp;<img src="http://www.mapsofindia.com/images/homeimages/visamanu.jpg" width="62" height="39" alt="Visa" border="0"><!-- <br><br><font face="verdana" color="#000000" style="font-size:10px;"><div align="center"><b>Statement of Confidence</b></div><div align="justify">We use the latest Secure Sockets Layer (SSL) technology to ensure that your credit card transaction through our payment gateway is safe and secure. </font> --></td></tr></table>');
}

function toppanel()
{
	document.write('<TR><TD valign=middle background="images1/images/top-right-pannel.jpg" style="background-repeat:repeat-x;padding-bottom:3px;">			<div align=right>	<A class="ahref" style="padding-right:10px;padding-top:3px;font-family:Arial;font-size:12px;color:white" HREF="http://www.mapsofindia.com/quiz/"><B>Home</B></A>&nbsp;&nbsp;<FONT COLOR="white">|</FONT>&nbsp;&nbsp;	<A class="ahref" style="padding-right:10px;padding-top:3px;font-family:Arial;font-size:12px;color:white" HREF="http://www.mapsofindia.com/quiz/prevScore.php"><B>Yesterday\'s Result</B></A>&nbsp;&nbsp;<FONT COLOR="white">|</FONT>&nbsp;&nbsp;	<A class="ahref" style="padding-right:10px;padding-top:3px;font-family:Arial;font-size:12px;color:white" HREF="http://www.mapsofindia.com/quiz/register.php?r=1"><B>Sign In</B></A>&nbsp;&nbsp;<FONT COLOR="white">|</FONT>&nbsp&nbsp;	<A class="ahref" style="padding-right:10px;padding-top:3px;font-family:Arial;font-size:12px;color:white" HREF="http://www.mapsofindia.com/quiz/logout.php?r=1"><B>Sign Out</B></A>&nbsp;&nbsp;<FONT COLOR="white">|</FONT>&nbsp;&nbsp;	<A class="ahref" style="padding-right:10px;padding-top:3px;font-family:Arial;font-size:12px;color:white" HREF="http://www.mapsofindia.com/quiz/register_screen.php"><B>New User</B></A>&nbsp;&nbsp;<FONT COLOR="white">|</FONT>&nbsp;&nbsp;	<A class="ahref" style="padding-right:10px;padding-top:3px;font-family:Arial;font-size:12px;color:white" HREF="mailto:solutions@mapsofindia.com"><B>Contact Us</B></A>	</div>	</TD></TR><tr bgcolor="#a80000"><td><a href="http://www.mapsofindia.com/quiz/prevScore.php"><marquee behavior="scroll"  scrollamount="3"><font color="yellow" face="arial" size="3" style="cursor:hand"><b>Please click here to view yesterday\'s result</b></font></marquee></a></td></tr>');
}

function leftpanel()
{
		document.write('<TABLE width=96% border=0 bordercolor=white cellspacing=0 cellpadding=0>		<TR>			<TD>	<TABLE cellspacing=0 cellpadding=5 width=100% border=0 bordercolor=#071C9B align=center >		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C002"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">History</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>				<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C004"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Politics</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C005"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Economy</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C003"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Science</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C006"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Entertainment</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C007"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Travel & Tourism</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C008"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Social & Cultural Life</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C009"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Nature</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C010"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Armed Forces</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>		<TR><TD height="25">			<IMG SRC="images1/images/bullet.jpg" WIDTH="11" HEIGHT="9" BORDER="0" ALT="">&nbsp;<A class="ahref" HREF="http://www.mapsofindia.com/quiz/sess.php?category=C001"><FONT style="font-family:arial;font-size:12px;font-weight:bold" COLOR="#FAFAFE">Geography</FONT></A>		</TD></TR>		<TR><TD height=1 style="padding-left:14px;"><IMG SRC="images1/images/left-pannel-under-line.jpg" WIDTH="143" HEIGHT="1" BORDER="0" ALT=""></TD></TR>	</TABLE>	</TD>		</TR>		</TABLE>');
}
function topheaderline()
{
	document.write("<tr><td><table cellpadding=0 cellspacing=1 border=0 width='970' align='center'><tr><td background='http://www.mapsofindia.com/quiz/images/new/top-link-1.jpg' style='background-repeat:no-repeat;' width='154' height='34' align='center'><A HREF='http://www.mapsofindia.com/quiz/register.php?r=1' class='toplinks'>SIGN IN</A></td><td background='http://www.mapsofindia.com/quiz/images/new/top-link-3.jpg' style='background-repeat:no-repeat;' width='102' height='34' align='center'><A HREF='http://www.mapsofindia.com/quiz/register_screen.php' class='toplinks'>NEW USER</A></td><td background='http://www.mapsofindia.com/quiz/images/new/top-link-2.jpg' style='background-repeat:no-repeat;' width='176' height='34' align='center'><A HREF='http://www.mapsofindia.com/quiz/prevScore.php' class='toplinks'>YESTERDAY'S RESULT</A></td><td background='http://www.mapsofindia.com/quiz/images/new/top-link-5.jpg' style='background-repeat:no-repeat;' width='116' height='34' align='center'><A HREF='http://www.mapsofindia.com/quiz/banners.html' class='toplinks'>QUIZ BANNERS</A></td><td background='http://www.mapsofindia.com/quiz/images/new/top-link-4.jpg' style='background-repeat:no-repeat;' width='113' height='34' align='center'><A HREF='http://www.mapsofindia.com/quiz/feedback-from.html' class='toplinks'>FEEDBACK</A></td><td background='http://www.mapsofindia.com/quiz/images/new/top-link-6.jpg' style='background-repeat:no-repeat;' width='126' height='34' align='center'><A HREF='http://www.mapsofindia.com/quiz/myaccolades.php' class='toplinks'>ACCOLADES</A></td><td background='http://www.mapsofindia.com/quiz/images/new/top-link-7.jpg' style='background-repeat:no-repeat;' width='179' height='34' align='center'><A HREF='http://www.mapsofindia.com/quiz/editProfile.php' class='toplinks'>UPDATE PROFILE</A></td></tr></table></td></tr><tr><td></td></tr>");
}

function schoolform()
{
	document.write("<table cellpadding=3 cellspacing=1 border=0 width='520' align='center' style='border:1px solid navy;font-weight:bold;font-family:Verdana;font-size:11px;color:navy;'><FORM enctype='multipart/form-data' Name='register' METHOD='POST' ACTION='http://www.mapsofindia.com/schools/thanks11.php' onsubmit='javascript:return chkempty();'><tr><td align='right'>School's Name</td><td><b>:</b>&nbsp;<input type='text' name='txiname' size=30></td></tr><!-- new tr --><tr><td align='right'>Contact Address</td><td><b>:</b>&nbsp;<textarea name='txiaddress' rows=5 cols=30></textarea></td></tr><!-- new tr --><tr><td align='right'>Email Id</td><td><b>:</b>&nbsp;<input type='text' name='txiemail' size=20></td></tr><!-- new tr --><tr><td align='right'>Phone No</td><td><b>:</b>&nbsp;<input type='text' name='txiphone' size=20></td></tr><!-- new tr --><tr><td align='right'>Person to be contacted</td><td><b>:</b>&nbsp;<input type='text' name='txiperson' size=30></td></tr><!-- new tr --><tr><td colspan=2 align=\'center\' style=\'padding-right:50px;\'><img src=\'http://www.mapsofindia.com/schools/image.php\' align=\'absmiddle\' hspace=10><input type=\'text\' name=\'imgchk\' size=10></td></tr><tr><td colspan=2 align=\'center\'><input type=\'submit\' name=\'s1\' value=\'Submit\'></form></table>");
}
function IsNumeric(strString)
   //  check for valid numeric strings	
{
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
   {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
		      blnResult = false;
         }
   }
   return blnResult;
}

function isValidEmail(str) 
{
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}

	function chkempty()
	{
		if(document.register.txiname.value=='' || document.register.txiname.value==' ')
		{
			alert("School Name must not be empty");
		    document.register.txiname.focus();
			return false;
		}
		if(document.register.txiaddress.value=='' || document.register.txiaddress.value==' ')
		{
			alert("Address must not be empty");
			document.register.txiaddress.focus();
			return false;
		}
		if(document.register.txiemail.value=='' || document.register.txiemail.value==' ')
		{
			alert("Email Address must not be empty");
			document.register.txiemail.focus();
			return false;
		}
		else if (isValidEmail(document.register.txiemail.value) == false) 
		{
			alert("Invalid E-mail Address! Please re-enter.");
    	    document.register.txiemail.value='';
		    document.register.txiemail.focus();
			return false;
		}
	
		
		if(document.register.txiphone.value=='' || document.register.txiphone.value==' ')
		{
			alert("Phone No. must not be empty");
    	    document.register.txiphone.focus();
			return false;
		}
		else if (IsNumeric(document.register.txiphone.value) == false) 
		{
	      alert("Phone No. must be numeric");
		  document.register.txiphone.focus();
		  document.register.txiphone.value='';
		  return false;
		}

		if(document.register.txiperson.value=='')
		{
			alert("Name of contact person must not be empty");
			document.register.txiperson.focus();
		  document.register.txiperson.value='';
		  return false;
		}
if(document.register.imgchk.value==""){
      alert("Please enter the code!");
			document.register.imgchk.focus();
		return false;
	}
	
	
	
		return true;
		
	}
