function doNothing() { }

function BGNew(obj, new_style, message) { 
  obj.className = new_style; 
  window.status = message; 
}

function BGNew2(obj, new_style) { 
  obj.className = new_style;   
}

function setLinkMouseOver(obj, newClass, label) {
  obj.className = newClass;
  obj.style.cursor='pointer';
  setLabel(label);
}

function search(field) {
 if (field.value.length > 0) return true;
 else return false;
}

function setLinkMouseOut(obj, newClass) {
  obj.className = newClass;  
  clearLabel();
}

function clearLabel() {
  window.status = "";
}

function setLabel(label) { 
  window.status = label;
}

function newWindowClone(mypage, myname, scroll) {		
    win = window.open(mypage, myname);
    win.focus();
   //if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function newWindowLarge(mypage, myname, scroll) {
	var w = 490;
	var h = 770;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=1'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function newWindowSmall(mypage, myname, scroll) {
	var w = 400;
	var h = 320;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function viewMap(lat, lon, zoom) {  
   var url = 'Display-Map.html'; 
   if (lat != undefined && lon != undefined && zoom != undefined) {
     url = 'Display-Map.html?lat='+lat+'&lon='+lon+'&zoom='+zoom;   
   }
   newWindow = window.open(url,'mapViewPopup','top=0,left=0,width=675,height=635,resizable=0,status=1');  
   newWindow.focus();   
}

function moan()
{   
    //document.getElementById("beep").innerHTML = ' <EMBED SRC="moan.wav" WIDTH=1 HEIGHT=1 HIDDEN="true" AUTOSTART="true" LOOP="false" volume="100">';  
}

function kiss()
{   
    //document.getElementById("beep").innerHTML = ' <EMBED SRC="kiss.wav" WIDTH=1 HEIGHT=1 HIDDEN="true" AUTOSTART="true" LOOP="false" volume="100">';  
}

function openwindow(page)
{
	mywindow = window.open (page,"","scrollbars=1,width=450,height=400");
 
	mywindow.moveTo(0,0); 

}