function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
// add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
document.getElementById('clock').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()',500)
}

function checkTime(i)
{
if (i<10) 
  {i="0" + i}
  return i
}

function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) 
{//v1.0
	var windowProperties=''; 
		if(nav==false) windowProperties+='toolbar=no,';
			else
			windowProperties+='toolbar=yes,';
		if(loc==false) windowProperties+='location=no,'; 
			else
			windowProperties+='location=yes,';
		if(sts==false) windowProperties+='status=no,';
			else
			windowProperties+='status=yes,';
		if(menu==false) windowProperties+='menubar=no,';
			else
			windowProperties+='menubar=yes,';
		if(scroll==false) windowProperties+='scrollbars=no,';
			else
			windowProperties+='scrollbars=yes,';
		if(resize==false) windowProperties+='resizable=no,';
			else
			windowProperties+='resizable=yes,';
		if(w!="") windowProperties+='width='+w+',';
		if(h!="") windowProperties+='height='+h;
		if(windowProperties!="") 
{ 
if( windowProperties.charAt(windowProperties.length-1)==',') 
windowProperties=windowProperties.substring(0,windowProperties.length-1); } 
window.open(url,name,windowProperties);
}

function DB_openNewWindow(w,h,url) 
{//v1.0
	var windowProperties=''; 
	windowProperties+='toolbar=no,';
	windowProperties+='location=no,'; 
	windowProperties+='status=no,';
	windowProperties+='menubar=no,';
	windowProperties+='scrollbars=yes,';
	windowProperties+='resizable=yes,';
	if(w!="") windowProperties+='width='+w+',';
	if(h!="") windowProperties+='height='+h;
	if(windowProperties!="") 
{ 
if( windowProperties.charAt(windowProperties.length-1)==',') 
windowProperties=windowProperties.substring(0,windowProperties.length-1); } 
window.open(url,name,windowProperties);
}

//
// Code for Random Images.
//
// Copyright 2002 Bontrager Connection, LLC
//
// Type the number of images you are rotating.

NumberOfImagesToRotate = 3;

// Specify the first and last part of the image tag.

FirstPart = '<img src="/images/ads/ad-0';
LastPart = '.jpg" height="120" width="240">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}

//
// End of Code for Random Images.
//

