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" height="198">')
	
	document.write('<tr>')
	document.write('<td width="97" height="55" colspan="2" rowspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="319" height="95" id="wipe-suwidhamn" align=""><param name="movie" value="../wipe-suwidhamn.swf"/> <param name="quality" value="high"/><param name="bgcolor" value="#FFFFFF"/> <embed src="../wipe-suwidhamn.swf" quality=high bgcolor="#ffffff"  width="319" height="95" name="wipe-suwidhamn" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></td>')
	document.write('<td width="319" height="28" bgcolor="#ffffff" valign="bottom" align="right" bordercolor="#c0c0c0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="header" href="../index.html">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#c0c0c0">|</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a class="header" href="../html/contact.htm">Contact Us</a>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#c0c0c0">|</font>&nbsp;&nbsp;&nbsp;&nbsp; <a class="header" href="mailto:doit@punjab.gov.in">Email</a></td>')	
	document.write('</tr>')	
	
	document.write('<tr>')	
	document.write('<td width="319" height="27" bgcolor="#FFFFFF" valign="bottom" align="right"><img border="0" src="../images/yellowbarnew1.jpg" width="445" height="8"><img border="0" src="../images/graybar.jpg" width="445" height="9"></td>')	
	document.write('</tr>')
	
	document.write('<tr>')
	document.write('<td width="119" height="72" valign="middle" colspan="2"><img border="0" src="../images/mainimagenew1.jpg" width="320" height="141" hspace="0" vspace="0"></td>')
	document.write('<td width="519" height="72" valign="middle"><img border="0" src="../images/mainimagenew2.jpg" width="445" height="141" hspace="0" vspace="0"></td>')	
	document.write('</tr>')	
	
	document.write('<tr>')
	document.write('<td width="638" height="71" valign="top" colspan="3"></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 border="0" cellpadding="0" cellspacing="0" width="770">')
	document.write('  <tr>')
	document.write('   <td><img border="0" src="../images/yellowbarnew.jpg" width="770" height="2"></td>')
	document.write('  </tr>')
	
	document.write('  <tr>')
	document.write('   <td align="center"><b><a class="footer" href="../index.html">Home</a> <font color="#c0c0c0">||</font> <a class="footer" href="../html/suwidha_information.htm">SUWIDHA Information</a> <font color="#c0c0c0">||</font> <a class="footer" href="../html/tel_dir.htm">Government Telephone Directory of Punjab</a> <font color="#c0c0c0">||</font><a class="footer" href="../html/tourist_places.htm"> Tourist Places of Punjab</a> <font color="#c0c0c0">||</font><br/><a class="footer" href="../html/punjab_website.htm"> Punjab Government Websites</a> <font color="#c0c0c0">||</font><a class="footer" href="../html/punjab_district_website.htm">Punjab District Websites</a> <font color="#c0c0c0">||</font><a class="footer" href="../html/contact.htm"> Contact Us</a> <font color="#c0c0c0">||</font> <a class="footer" href="mailto:dc.jalandhar@punjabmail.gov.in">Email</a></b></td>')
	document.write('  </tr>')
	
	document.write('  <tr>')
	document.write('   <td><img border="0" src="../images/gray2bar.jpg" width="770" height="2"></td>')
	document.write('  </tr>')
	document.write('</table>')
}

function copyright()
{
	document.write('<center>')
	document.writeln('<table width="55%" cellpadding="1" cellspacing="0" border="0">')
	document.writeln('<tr>')
	document.writeln('<td align="centre" class="Copyright" ><b>Site Designed & Hosted by:  National Informatics Centre, Punjab State Unit</b></td>')
	document.writeln('<td>')
	document.writeln('</td>')
	document.writeln('</tr>')
	document.writeln('<tr>')
	
	document.writeln('<td align="centre" class="Copyright"><b>Contents Provided and Updated by:  District Administrations and DIT, Punjab</b></td>')
	document.writeln('<td>')
	document.writeln('</td>')	
	document.writeln('</tr>')
	
	document.writeln('<tr>')
	document.writeln('<td align="centre" class="Copyright" ><b>This site is best viewed in 800x600 resolution.Use IE 6.0 or above.</b></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/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);
}

