function golargeimage(oog,eeg,ig,imagealt)
{
var winpops=window.open("goimage.php?imagealt=" + imagealt + "&image=" + oog + "&width=" + eeg + "&height=" +ig,"","resizable=1,width=100,height=100")

return false;
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.className == "external")
   anchor.target = "_blank";
 }
}
window.onload = externalLinks;


function goform(oog) 
{ 
var searchwords = document.getElementById("search").value; 
	if((searchwords == "") && navigator.appName != "Netscape") 
	{ 
if(searchwords == "" && oog != 1) 
		{ 
		document.getElementById("search").focus(); 
		}
	} 
	else
	{ 
	document.getElementById("searchform").submit(); 
	}
}



function goclearform()
{
document.getElementById("search").value = "";
document.getElementById("search").focus();
}
function checkenter(event) 
{ 
code = event.keyCode; 
	if (code==13) 
	{ 
	return goform(1)
	} 
} 

/************ CLOCK **************/
    

	function displayclock() { 
	  var entime = new Date();
	 

    var hours = entime.getHours();
    var min = entime.getMinutes();
    
    if(hours > 12) hours = hours-12;
    
    Time = ((hours < 10) ? "" : "") + hours; 
    Time += ((min < 10) ? ":0" : ":") + min; 
    
    
    
    
    document.getElementById('clockdiv').innerHTML = Time; 
    setTimeout("displayclock()",60000); 
  } 
