function displayDate()
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='#ffffff' size=1 face='verdana'>"+montharray[month]+" "+daym+" - "+hours+":"+minutes+" "+dn+" </font></small>")
}

function PopupPic(sPicURL) { 
  
  var w = 800;
  var h = 600;
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  
  window.open("gallery_image.htm?"+sPicURL, "","top="+wint+",left="+winl+",resizable=1,height=200,width=200"); 

}

function setAsHomePage(){

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// If it's Internet Explorer, use automatic link
// to the URL you want them to bookmark.
if (document.all){
  document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.trac-aircon.co.uk\');">');
  document.write('Set as Homepage <img src="images/set_homepg.gif" width="14" height="22" border="0" align="absmiddle" style="margin-right:10px" /></B>');
}

// If it's Netscape 6, tell user to drag link onto Home button
// to the URL you want them to bookmark.
else if (document.getElementById){
  document.write('<a href="http://www.trac-aircon.co.uk">Drag link to Set as Homepage</a><img src="images/set_homepg.gif" width="14" height="22" border="0" align="absmiddle" style="margin-right:10px" />');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
//  End -->
}

