function header(position){	
	var relative_path = ""
	if (position == null){
		position = 1
		relative_path = "../html/"
	} else if (position == 0) relative_path = "html/"
	else if (position == 2) relative_path = "../../html/"
	
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="780">')
	document.write('  <tr>')
	document.write('   <td colspan="3"><map name="FPMap0"><area href="../index.html" shape="rect" coords="5, 58, 73, 82"></map><img border="0" src="../images/banner4.jpg" width="220" height="140" usemap="#FPMap0"><img SRC="../images/banner5.jpg" width="219" height="140" border="0"><img SRC="../images/banner61new.jpg" width="282" height="140"></td>')
	document.write('  </tr>')
	document.write('</table>')
}
function header_old(position){	
	var relative_path = ""
	if (position == null){
		position = 1
		relative_path = "../html/"
	} else if (position == 0) relative_path = "html/"
	else if (position == 2) relative_path = "../../html/"
	
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="780">')
	document.write('  <tr>')
	document.write('   <td colspan="3" width="758"><img src="'+relative_path+'../images/logo.jpg" hspace="0" vspace="0" width="301" height="49" border="0" alt=""><img src="../images/img1.gif" width="455" height="49"></td>')
	document.write('  </tr>')				
	document.write('  <tr>')
	document.write('   <td colspan="3" width="758"><a href="../index.html"><img SRC="../images/home.gif" width="71" height="39" border="0"></a><img SRC="../images/img2.gif" width="146" height="39"><img border="0" src="../images/phrase.jpg" width="374" height="39"><img SRC="../images/img3.gif" width="165" height="39"></td>')
	document.write('  </tr>')
	document.write('</table>')
}

function footer(position){	
	var relative_path = ""
	if (position == null){
		position = 1
		relative_path = "../html/"
	} else if (position == 0) relative_path = "html/"
	else if (position == 2) relative_path = "../../html/"
	
	document.write('<table bgcolor="#4B94BD" border="0" cellpadding="0" cellspacing="0" width="100%">')
	document.write('  <tr>')
	document.write('   <td align="center" height="18"><a href="../index.html" title="Home" class="link"><font color="#EFF8FC">||&nbsp;Home&nbsp;</a></font><font color="#EFF8FC">||&nbsp;</font><a href="../html/development_stories.htm" title="Invest"  class="link">Development Stories</a> <font color="#FFFFFF">||&nbsp;</font><a href="http://punjabsewa.gov.in" title="Public Utility Forms" class="link">Public Utility Forms&nbsp;</a><font color="#FFFFFF">||&nbsp;</font><a href="../html/agricultur_industry.htm" title="Agriculture & Industry" class="link">Agriculture & Industry&nbsp;</a><font color="#FFFFFF">||&nbsp;</font>&nbsp;<a href="../html/education_menu.htm" title="Education" class="link">Education&nbsp;</a><font color="#FFFFFF">||&nbsp;</font><a href="../html/govt_dept_menu.htm" title="Health" class="link">Health&nbsp;</a><font color="#FFFFFF">||&nbsp;</font><a href="../html/election.htm" title="Latest Election Results" class="link">Latest Election Results&nbsp;</a><font color="#FFFFFF">||&nbsp;</font><a href="../html/maps.htm" title="Maps" class="link">Maps&nbsp;</a><font color="#FFFFFF">||&nbsp;</font><a href="../html/key_contacts.htm" title="Telephone Directory" class="link">Telephone Directory&nbsp;<font color="#FFFFFF">||&nbsp;</font><a href="../html/egovernance.htm" title="Egovernance" class="link">E-governance</a>&nbsp;<font color="#EFF8FC">||</font></td>')
	document.write('  </tr>')
	document.write('</table>')
	document.write('<br>')
}

function copyright(){
	document.write('<center>')
	document.writeln('<table width="100%" cellpadding="1" cellspacing="0" border="0">')
	document.write('<tr height="3" bgcolor="#aa6f5e"><td colspan="2"></td></tr>')
	document.writeln('<tr>')
	document.writeln('<td class="Copyright" align="right"><b>Site is designed &amp; developed by:</b></td>')
	document.writeln('<td class="Copyright"><font color="#fa911d">National Informatics Centre, Punjab State Unit, Chandigarh</font></td>')
	document.writeln('</tr>')
	document.writeln('<tr>')
	
	document.writeln('<td align="right" class="Copyright"><b>Contents developed by:</b></td>')
	document.writeln('<td class="Copyright"><font color="#fa911d">Muktsar District Administration</font></td>')
	document.writeln('</tr>')
	document.writeln('<tr>')

	document.writeln('<td class="Copyright" colspan="2" align="center"><font size="-2" face="tahoma">This site is best viewed in 800x600 resolutions. Use IE 4.5/Netscape 4.5 or above.</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>')
	document.writeln('</tr>')
	document.writeln('</table>')
	document.write('</center>')	
}
	

function leftMenu(str){

	document.writeln('<table width="181" border="0" cellspacing="0" cellpadding="0">')
	document.writeln('<tr><td width="181" valign="top"><a href="../html/about_district.htm"><img border="0" src="../images/about_district.jpg" width="169" height="24"></a><br/><a href="../html/history.htm"><img border="0" src="../images/history1.jpg" width="169" height="24"></a><br/><a href="../html/district_administration_menu.htm"><img border="0" src="../images/district-admn.jpg" width="169" height="24"></a><br/><a href="../html/district_at_a_glance.htm"><img border="0" src="../images/district_glance.jpg" width="169" height="24"></a><br/><a href="../html/CitizenCharter.htm"><img border="0" src="../images/citizen_charter.jpg" width="169" height="24"></a><br/><a href="../html/places_to_visit.htm"><img border="0" src="../images/places_of_interest.jpg" width="169" height="24"></a><br/><a href="../html/fair_festivals.htm"><img border="0" src="../images/fair_festival.jpg" width="169" height="20"><br/>')
  	document.writeln('<img border="0" src="../images/img5.gif" width="169" height="142">')
	document.writeln('</tr></td>')
	document.writeln('</table>')

}



function homeBottom(){
	document.writeln('<br><center><div style="height=20;width=50;"><B><a href="../index.html"><img src="../images/1hm03c.gif" width="60" height="50" border="0" alt="Home"></a></B></div></center>')
}

function getDate(){
	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December";
	var time=new Date();
	var hours = time.getHours();
	var minutes = time.getMinutes();
	var seconds = time.getSeconds();
	var amOrPm = "am.";
	var lmonth=months[time.getMonth() + 1];
	var date=time.getDate();
	var year=time.getYear();
	if (year < 2000)    
	year = year + 1900; 
	if (hours > 11) amOrPm = "pm.";
	if (hours > 12) hours = hours - 12;
	if (hours == 0) hours = 12;
	if (minutes <= 9) minutes = "0" + minutes;
	if (seconds <= 9) seconds = "0" + seconds;

	document.write( lmonth + " ");
	document.write(date + ", " + year + "  &nbsp;"+hours + ":" + minutes + ":" + seconds + " " + amOrPm);
}
