function head()
{
document.write("<BODY BGCOLOR='#FFFFFF' LEFTMARGIN='0' TOPMARGIN='3' MARGINHEIGHT='0' RIGHTMARGIN='0' MARGINWIDTH='0'>")
document.write("<CENTER><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=770 BORDER=0><TR><TD>")
document.write("<TR>")
document.write("<TD VALIGN=TOP><CENTER><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=770 BORDER=0><TR><TD ROWSPAN=2><IMG WIDTH=415 HEIGHT=70 SRC='graphics/head.gif' BORDER=0></CENTER></TD><TD VALIGN=TOP><IMG WIDTH=355 HEIGHT=10 SRC='graphics/clear.gif' BORDER=0></TD></TR><TR><TD VALIGN=TOP style='text-align:right; padding-top:7px;'><a href='http://garrisonjhang.com' border='0' target='_blank'><IMG WIDTH=335 HEIGHT=42 SRC='banners/garrison.gif' BORDER=1></a></TD></TR></TABLE></CENTER></TD>")
document.write("</TR>")
document.write("<TR><TD BGCOLOR='#709F00' HEIGHT=25 VALIGN=TOP><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=770 BORDER=0>")
document.write("<TR>")
document.write("<TD><IMG SRC='graphics/topmenu.jpg' WIDTH=450 HEIGHT=24 BORDER=0 USEMAP='#top_menu_Map'><MAP NAME='top_menu_Map'><AREA SHAPE='rect' ALT='Feedback' COORDS='297,2,353,22' HREF='feedback.htm'><AREA SHAPE='rect' ALT='Email' COORDS='188,2,260,22' HREF='email.html'><AREA SHAPE='rect' ALT='Community' COORDS='92,3,153,21' HREF='community.html'><AREA SHAPE='rect' ALT='Home' COORDS='24,3,56,21' HREF='default.html'><AREA SHAPE='rect' ALT='Urdu Corner' COORDS='392,5,415,22' HREF='urdu/default.html'></MAP></TD><TD VALIGN=TOP><IMG SRC='images/clear.gif' HEIGHT=25 WIDTH=80 BORDER=0></TD>")
document.write("<TD ALIGN=RIGHT><table><tR><td><FORM METHOD='POST' ACTION='cgi-bin/search/search_engine.cgi'>&nbsp; <INPUT TYPE='text' SIZE='20' NAME='keywords' MAXLENGTH='80' VALUE='Search MeraJhang' onFocus='clearText(this)' STYLE='font-family: Verdana, Arial, Helvetica, sans-serif; font-size:0.6pc; color: #013133; background-color:#FFFFFF; float:center;'>")
document.write("</td><td><INPUT TYPE='image' NAME='Submit' SRC='graphics/green-search.gif' style='padding-top:5px;'></td></tr></table></TD></FORM></TR></TABLE>")
document.write("</TD></TR>")
document.write("</TABLE></CENTER>")
document.write("<CENTER><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=770 BORDER=0>")
document.write("<TR><TD VALIGN=TOP WIDTH=100%><CENTER><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=770 BORDER=0><TR><TD><IMG SRC='images/clear.gif' HEIGHT=5 BORDER=0></TD></TR>")
document.write("<TR>")
}

function foot()
{

document.write("</TR></TABLE></CENTER></TD></TR><TR><TD VALIGN=TOP><IMG HEIGHT=30 SRC='images/clear.gif' BORDER=0></TD></TR></TABLE></CENTER>")
document.write("<CENTER><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=100% BORDER=0>")
document.write("<TR><TD VALIGN=CENTER><P ALIGN=CENTER><A CLASS='centermenu' HREF='advertise.htm'>Advertise</A> | <A CLASS='centermenu' HREF='contact.htm'>Contact</A> | <A CLASS='centermenu' HREF='contact.htm'>Disclaimer</A>")
document.write("</TD></TR>")
document.write("<TR><TD VALIGN=TOP><IMG HEIGHT=5 SRC='images/clear.gif' BORDER=0></TD></TR>")
document.write("<TR><TD VALIGN=CENTER><P ALIGN=CENTER><B>:: Site Designed & Managed By Mera Jhang Team :: </B><BR> Phone # 0345-7584242  E-mail: <A class='centermenu' HREF='mailto:akhtar@merajhang.com'>akhtar'at'merajhang'dot'com</A><BR>Amir Town, Sargodha Road, Jhang")
document.write("<TR><TD VALIGN=TOP><IMG HEIGHT=5 SRC='images/clear.gif' BORDER=0></TD></TR>")
document.write("</TD></TR>")
document.write("</TABLE></CENTER>")
document.write("</BODY>")
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function votesie_popup () {
 var vurl_string = 'http://www.merajhang.com/cgi-bin/polls/votesie.cgi?Question=';
 vurl_string += escape(document.Votesie.Question.value);
 vurl_string += '&ShowResults=Yes&Vote=';
 for (var i = 0; i < document.Votesie.Vote.length; i++){
    if(document.Votesie.Vote[i].checked){
       vurl_string += escape(document.Votesie.Vote[i].value);
       }
    }

  vurl_string += '&headercolor='; vurl_string += escape(document.Votesie.headercolor.value);
  vurl_string += '&headerfontcolor='; vurl_string += escape(document.Votesie.headerfontcolor.value);
  vurl_string += '&pollcolor='; vurl_string += escape(document.Votesie.pollcolor.value);
  vurl_string += '&pollfontcolor='; vurl_string += escape(document.Votesie.pollfontcolor.value);
  vurl_string += '&resultcolor='; vurl_string += escape(document.Votesie.resultcolor.value);
  vurl_string += '&resultfontcolor='; vurl_string += escape(document.Votesie.resultfontcolor.value);
  vurl_string += '&barcolor='; vurl_string += escape(document.Votesie.barcolor.value);
  vurl_string += '&bordercolor='; vurl_string += escape(document.Votesie.bordercolor.value);

 window.open(vurl_string,'Votesie','width=570,height=350,left=150,top=100,toolbar=no,scrollbars=no,resizable=yes,status=no,directories=no,menubar=no,location=no');
 return false; 
}
