function showmenu(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hidemenu(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

	
	function getDim2(el){
	for (var lx=0,ly=0;el!=null;
		ly+=el.offsetTop,lx+=el.offsetLeft,el=el.offsetParent);
	return {y:ly}
}
    function getDim(el){
	for (var lx=0,ly=0;el!=null;
		lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
	return {x:lx}
}
	
function popUp(PopInfo,wid,hei)
{
var desktop=window.open(PopInfo,"_blank","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=" + wid + ",height=" + hei + "");
}


function checkData2() {
		
		if (document.norm.search.value == "") {
		alert("Please enter a key word.");
		document.norm.search.focus();
		return false; }
		
		if (document.norm.search.value == "Search website") {
		alert("Please enter a key word.");
		document.norm.search.focus();
		return false; }
		
	}


	

