function openMenu(type,object,parent){
  if (document.getElementById)
  if(type=='on'){
	document.getElementById(object).style.visibility="visible"; 
	document.getElementById(object).style.zIndex="100";
  }
	  else {
	  document.getElementById(object).style.visibility="hidden";
	  //document.getElementById(parent).style.background="#003366";
  }
  return false;
}
function clearText(thefield){
if (thefield.value=="")
thefield.value = thefield.defaultValue
} 

function fillText(thefield){
if (thefield.value == thefield.defaultValue)
(thefield.value="")
} 
if(top != self) { top.location = location }
function Details(Path, Width, Height) {
  window.open(Path,'Details','toolbar=no,scroll=yes,'+Width+Height);
}
function PopUpWindow(theURL,winName,features) {
	  window.open(theURL,winName,features);
}

function siterefer(sitename){
nameW='figwin'
	width = 400;
	height = 275;
	url= '/welcome.html?sitename='+sitename;
 if (navigator.appVersion.indexOf('4') != -1) {
 // Vars for centering the new window on Version 4 Browsers
 xTop = screen.width/2 - (width/2);
 yTop = screen.height/2 - (height/2); 
 window.open(url, nameW,'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
 } else {
 window.open(url, nameW,'height='+height+'width='+width+',,scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=150,top=200');
 }
}
