function top(path)
{
	if (path=="")
	{
	path="./";
	}

document.write("<table width='100%' cellpadding=0 cellspacing=0 class='text a002' border=0>");
document.write('<tr><td><table width="100%" cellpadding="0" cellspacing="0" class="text" border=0><tr><td width="150"  bgcolor="#E8F0F8" valign="middle" style="padding-top:5px;"><TABLE align="center" class="text" width="90%" height="80%" style="border:0px solid #FF5838;font-size:8pt;"  bgcolor="#FFFF00"><TR><TD align="center" style="font-size:16px;"><A href="http://www.palsforfree.com/" target="_blank" title="Palsforfree.com : A Site for Free Netpals." style="color:#FF5838;"><b>Pals for Free</b></FONT></A></TD></TR></TABLE></td><td><H1 class="sitename" align="center" title="Civil Services India">Civil Service India</H1></td><td width="150" align="left" bgcolor="#E8F0F8"><TABLE align="left" class="text" style="border:0px solid #FF5838;font-size:8pt;"  bgcolor="#FFFF00"><TR><TD><A href="http://www.gharpe.com/" target="_blank" title="Gharpe.com : A Site for Home Delivery Business in India."><IMG src="http://www.civilserviceindia.com/images/gharpe-logo-s.jpg" width=50 height=13 alt="Gharpe.com : A Site for Home Delivery Business in India." border="0"><BR><FONT color="black">Home Delivery Services</FONT></A></TD></TR></TABLE></td></tr></table></td></tr>');
document.write("<tr>");
document.write("<td valign='middle' align='right' class=top_link><a href='"+path+"about.html' class=top_link>About Us</a> | <a href='"+path+"contact.html' class=top_link>Contact Us</a>| <a href='"+path+"sitemap.html' class=top_link>Sitemap</a> | <a href='"+path+"index.html'  class=top_link>Home</a></td>");
document.write("</tr>");
document.write("</table>");

}

function left_bar(path)
{
	if (path=="")
	{
	path="./";
	}

document.write("<table cellpadding=0 cellspacing=0 align=right width=170>");
document.write("<tr>");
document.write("<td valign=top style='padding-left:5px;'>");
document.write("<table border='0'><tr><td height='20'><a href='http://www.civilserviceindia.com/poll/index.php' class=l_link><img src='"+path+"images/bullet.gif' border=0> <b>Poll</b></a></td></tr><tr><td height='20'><a href='"+path+"news.php' class=l_link><img src='"+path+"images/bullet.gif' border=0> News</a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"subject/Essay/Contest.html' class=l_link ><img src='"+path+"images/bullet.gif' border=0> Essay Contest<font color='red' style='font-size:8pt;'><b>**</b></font></a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"EarnWithUs.html' class=l_link ><img src='"+path+"images/bullet.gif' border=0> Earn With Us <font color='red' style='font-size:8pt;'><b>**</b></font></a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"about-civilservices.html' class=l_link ><img src='"+path+"images/bullet.gif' border=0> About Civil Services</a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"upsc-examination-time-table.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Exam Schedule 06-07</a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"subject/index.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Subject Resources</a></td></tr>");


document.write("<tr><td height='20' style='padding-left:10px;'><a href='"+path+"subject/main-syllabus.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Mains Syllabus</a></td></tr>");
document.write("<tr><td height='20' style='padding-left:10px;'><a href='"+path+"subject/preliminary-syllabus.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Preliminary Syllabus</a></td></tr>");
document.write("<tr><td height='20' style='padding-left:10px;'><a href='"+path+"subject/question-papers.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Question Papers</a></td></tr>");
document.write("<tr><td height='20' style='padding-left:10px;'><a href='"+path+"subject/strategy.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Strategy</a></td></tr>");
document.write("<tr><td height='20' style='padding-left:10px;'><a href='"+path+"subject/suggested-reading.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Suggested Reading</a></td></tr>");
document.write("");

document.write("<tr><td height='20'><a href='"+path+"ias-coaching/index.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Coaching Centers</a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"special-coaching-classes/index.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Free Special Classes </a></td></tr>");

document.write("<tr><td height='20'><a href='"+path+"resources.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> IAS Link Resources</a></td></tr>");

document.write("<tr><td height='20'><a href='"+path+"study-together/index.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Study Together</font></a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"bookcenter/index.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Book Center</a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"subject/General-Studies/free-books/index.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Free NCERT Books<font color='red' style='font-size:8pt;'>**</font></a></td></tr>");
document.write("<tr><td height='20'><a href='"+path+"subject/History/prelims/index.html' class=l_link><img src='"+path+"images/bullet.gif' border=0> Free History Notes<font color='red' style='font-size:8pt;'>**</font></a></td></tr>");
document.write("<tr><td height='20'><a href='http://www.thisismyindia.com/my-india/upload/viewforum.php?id=5' target='_blank' class=l_link><img src='"+path+"images/bullet.gif' border=0> Discussion Forum</a></td></tr>");
document.write("<tr><td height='20'><a href='http://www.coachingindians.com' target='_blank' class=l_link><img src='"+path+"images/bullet.gif' border=0> Other Competitive Exams<font color='red' style='font-size:8pt;'>**</font></a></td></tr>");
document.write("<tr><td height='20'><a href='http://www.civilserviceindia.com/refer/index.php' target='_blank' class=l_link><img src='"+path+"images/bullet.gif' border=0> Refer this site</a></td></tr></table>");
document.write('<br><br><table bgcolor="white" align="center" style="text-align:center;"><tr><td><a href="http://www.thisismyindia.com/free-e-cards/index.html" target="_blank" style="font-size:8pt;">Send Free E-Cards</a></td></tr><tr><td align="center"><a href="http://www.thisismyindia.com/free-e-cards/valentines_day/index.html" target="_blank" style="font-size:8pt;"><img src="http://www.thisismyindia.com/images/free-cards/greetings-t/bemyvalentine-t.png" border="0" ></a></td></tr><tr><td><a href="http://www.thisismyindia.com/free-e-cards/valentines_day/index.html" target="_blank" style="font-size:8pt;">Valentine Cards</a></td></tr><tr><td align="center"><a href="http://www.thisismyindia.com/free-e-cards/index.html" target="_blank" style="font-size:8pt;"><img src="http://www.thisismyindia.com/images/free-cards/greetings-t/xmas-greeting-1-t.gif" border="0" align="absmiddle"></a></td></tr><tr><td><a href="http://www.thisismyindia.com/free-e-cards/index.html" target="_blank" style="font-size:8pt;">Birth Day Cards</a></td></tr><tr><td align="center"><a href="http://www.thisismyindia.com/free-e-cards/index.html" target="_blank" style="font-size:8pt;"><img src="http://www.thisismyindia.com/images/free-cards/greetings-t/rakhi2-t.gif" border="0" ></a></td></tr><tr><td><a href="http://www.thisismyindia.com/free-e-cards/rakhi-cards/index.html" target="_blank" style="font-size:8pt;">Rakhi Cards</a></td></tr></table>');
document.write("</td>");
document.write("</tr>");	
document.write("</table>");

}

function bottom(path)
{
	if (path=="")
	{
	path="./";
	}
	
document.write("<table cellpadding=0 cellspacing=0 width='100%'>");
document.write("<tr>");
document.write("<td valign='top' align='center' class='text copy' style='padding:0px;'>&copy Copyright 2005-06 <b>CivilServiceIndia.com</b>");
document.write("</td>");
document.write("</tr>");
document.write("<!--<tr>");
document.write("<td class='copy' style='background-color:white;color:black;padding:0px;'>Site Developed by <a href='http:\/\/www.concerninfotech.com' class=run>Concern Infotech Pvt. Ltd.</a>");
document.write("</td>");
document.write("</tr>-->");
document.write("</table>");
}



function ads_inst(path)
{

if (path=="")
{
path="./";
}

document.write("<!-- Form --><FORM method='post' action='http://www.coachingindians.com/mbbs-coaching/php/submit_inst.php' name='institutes'><TABLE border='0' align='center' cellspacing='0' cellpadding='0' height='298' style='border:3px double #A0A0A0;' class='text'><TR><TD width='31%' height='25' bgcolor='#e5e5e5' colspan='2' align='center' style='padding:5px;'><B>Submit MBBS Coaching Center Details</B><br>If you run a study center or know of such a center <br>that is not listed above please fill the details <br>of the Institute concerned.<br></TD></TR><TR><TD width='31%' height='7'>&nbsp;Institution Name</FONT></TD><TD width='71%' height='7'><INPUT name='txt_company'></TD></TR><TR><TD width='31%' height='25' bgcolor='#e5e5e5'>&nbsp;Address</FONT></TD><TD width='71%' height='25' bgcolor='#e5e5e5'><INPUT name='txt_address'></TD></TR><TR><TD width='31%' height='25'>&nbsp;City</FONT></TD><TD width='71%' height='25'><INPUT name='txt_city'></TD></TR><TR><TD width='31%' height='2' bgcolor='#e5e5e5'>&nbsp;State/Province</FONT></TD><TD width='71%' height='2' bgcolor='#e5e5e5'><INPUT name='txt_state' ></FONT></TD></TR><TR><TD width='31%' height='25'>&nbsp;Phone</FONT></TD><TD width='71%' height='25'><INPUT name='txt_phone' >&nbsp;</FONT></TD></TR><TR><TD width='31%' height='25' bgcolor='#e5e5e5'>&nbsp;Web Site of Center</FONT></TD><TD width='71%' height='25' bgcolor='#e5e5e5'><INPUT name='txt_website' ></TD></TR><TR><TD width='31%' height='8'>&nbsp;E-Mail</FONT></TD><TD width='71%' height='8'><INPUT name='txt_email' ></TD></TR><TR><TD width='40%' valign='top' bgcolor='#e5e5e5'><FONT face='Arial'>&nbsp;Additional message<BR>&nbsp;(Courses and/or&nbsp;<BR>&nbsp;subjects offered with&nbsp;<BR>&nbsp;admission and other&nbsp;<BR>&nbsp;details)</FONT></TD><TD width='62%' valign='top' bgcolor='#e5e5e5'><FONT color='#000000'><TEXTAREA cols='24' name='txt_message' rows='5' ></TEXTAREA></FONT></TD></TR><TR><TD width='31%' height='25'>&nbsp;Rating</FONT></TD><TD width='71%' height='25'><select name='txt_rank'><option value='*'>* <option value='**'>* * <option value='***'>* * * <option value='****'>* * * * <option value='*****'>* * * * * </select></TD></TR><TR><TD width='102%' height='27' colspan='2' align='middle'><P align='center'><INPUT type='submit' value='Submit Now'style='border: 1px solid #C0C0C0; background-color: #D8FACF'>&nbsp;&nbsp;<INPUT type='reset' value='      Reset      'style='border: 1px solid #C0C0C0; background-color: #D8FACF'><BR></P></TD></TR></TABLE></FORM><!-- Form x-->");

var myform = new Validator("institutes");
myform.addValidation("txt_company","req","Please enter Name of Institute");
myform.addValidation("txt_company","maxlen=25","Max length 25");
myform.addValidation("txt_address","maxlen=75","Max length 75");
myform.addValidation("txt_city","maxlen=20","Max length 20");
myform.addValidation("txt_state","maxlen=20","Max length 20");
myform.addValidation("txt_phone","maxlen=25","Max length 25");
myform.addValidation("txt_website","maxlen=40","Max length 10");
myform.addValidation("txt_email","email");
myform.addValidation("txt_message","maxlen=300","Max length 300");
}


function study(path)
{
	if (path=="")
	{
	path="./";
	}
	
document.write('<FORM action="http://www.civilserviceindia.com/php/study.php" name="s2g" method="post"><TABLE width="100%" align="center" class="text"><tr><td colspan="2"><div align="center"><b>Study Together Form</b></div></td></tr><TR><TD><B>Name:</B></TD><TD><INPUT type="text" name="cname"></TD></TR><TR><TD><B>Email*:</B></TD><TD><INPUT type="text" name="cmail"></TD></TR><TR><TD><B>Address:</B></TD><TD><INPUT type="text" name="caddress"></TD></TR><TR><TD><B>City:</B></TD><TD><INPUT type="text" name="ccity"></TD></TR><TR><TD><B>State:</B></TD><TD><INPUT type="text" name="cstate"></TD></TR><TR><TD><B>Subjects:</B></TD><TD><INPUT type="text" name="csubj"></TD></TR><TR><TD><B>Phone:</B></TD><TD><INPUT type="text" name="cphone"></TD></TR><TR><TD><B>Other Details:</B></TD><TD><textarea name="details"></textarea></TD></TR><TR><TD></TD><TD><INPUT type="submit" value="Submit Form"><INPUT type="reset" value="Clear Form"</></TR></TABLE></FORM>');	
var myform = new Validator("s2g");
myform.addValidation("cname","req","Please enter Your Name");
myform.addValidation("csubj","req","Please enter your SUBJECT(s)");
myform.addValidation("cname","alpha","Check Name");
myform.addValidation("caddress","maxlen=50","Max length 50 chars");
myform.addValidation("ccity","maxlen=20","Max length 20");
myform.addValidation("cstate","maxlen=20","Max length 20");
myform.addValidation("cphone","maxlen=25","Max length 25");
myform.addValidation("cphone","num","Invalid Phone No");
myform.addValidation("cmail","req","E-mail Required");
myform.addValidation("cmail","email");
myform.addValidation("details","maxlen=300","Max length 300");
}



function bookcenter(path)
{
document.write("<FORM name='bookcenter' method='post' action='../php/bookcenter.php'><TABLE width='80%' align='center' class='text' style='border:1px solid #2080A0'><TR><TD width='25%'>Name:</TD><TD><INPUT type='text' name='bcname'></TD></TR><TR><TD>Address:</TD><TD><INPUT type='text' name='bcaddress' size='35'></TD></TR><TR><TD>City:</TD><TD><INPUT type='text' name='bccity' size='15'></TD></TR><TR><TD>E-mail:</TD><TD><INPUT type='text' name='bcemail' size='25'></TD></TR><TR><TD>Phone:</TD><TD><INPUT type='text' name='bcphone'>with STD Code</TD></TR><TR><TD>Type:</TD><TD><SELECT name='bctype'><OPTION value='' selected>Select<OPTION value='Mains'>Mains<OPTION value='Prelims'>Prelims<OPTION value='Prelims and Mains'>Both</SELECT></TD></TR><TR><TD>Category:</TD><TD><SELECT name='bccategory'><OPTION value='' selected>Select<OPTION value='Donate'>Donate<OPTION value='Exchange'>Exchange<OPTION value='Buy'>Buy<OPTION value='Sell'>Sell</SELECT></TD></TR><TR><TD>Subject:</TD><TD><TEXTAREA name='bcsubject' rows='2'></TEXTAREA></TD></TR><TR><TD>Other Info.</TD><TD><TEXTAREA name='bcinfo'></TEXTAREA></TD></TR><TR><TD colspan='2' align='center'><INPUT type='submit' value='Submit'></TD></TR></TABLE></FORM>");
var myform = new Validator("bookcenter");
myform.addValidation("bcname","req","Please enter Name");
myform.addValidation("bcname","maxlen=50","Please enter Name");
myform.addValidation("bcaddress","maxlen=150","Max length 25");
myform.addValidation("bccity","req","Enter City");

myform.addValidation("bcemail","email");
myform.addValidation("bcphone","num");
myform.addValidation("bctype","req");
myform.addValidation("bccategory","req");
myform.addValidation("bcsubject","req");
}


function google_ads()
{
google_ad_client = "pub-5304172181104265";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFD9";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
}
