function Display_Div(Click_Menu)
{
	myvar = document.getElementById(Click_Menu);
	//alert(document.getElementById(Click_Menu).style.display);
	if (myvar.style.display == "none")
	{
		myvar.style.display = "block";
	}
	else
	{
		myvar.style.display = "none";
	}
}

sfHover = function() {
	var sfEls = document.getElementById("topdropdown").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}
/*
	ieHover = function() {
	var ieLIs = document.getElementById('menu').getElementsByTagName('li');
	for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
		ieLIs[i].onmouseover=function() {
			
		var ieUL = this.getElementsByTagName('ul')[0];
		if (ieUL) {
		var ieMat = document.createElement('iframe');
						ieMat.style.width=ieUL.offsetWidth+"px";
						ieMat.style.height=ieUL.offsetHeight+"px";	
						ieUL.insertBefore(ieMat,ieUL.firstChild);
						ieUL.style.zIndex="99";
						}
			
			this.className+=" iehover";
			}
		ieLIs[i].onmouseout=function() {
			this.className=this.className.replace(' iehover', '');
			}
			}
	}
	if (window.attachEvent) window.attachEvent('onload', ieHover);*/

function checkEmail(email) {
	var proto  = "(mailto:)?";
	var usr    = "([a-zA-Z0-9][a-zA-Z0-9_.-]*|\"([^\\\\\x80-\xff\015\012\"]|\\\\[^\x80-\xff])+\")";
	var domain = "([a-zA-Z0-9][a-zA-Z0-9._-]*\\.)*[a-zA-Z0-9][a-zA-Z0-9._-]*\\.[a-zA-Z]{2,5}";
	var regex  = "^" + proto + "?" + usr + "\@" + domain + "$";

	var rgx    = new RegExp(regex);
	return rgx.exec(email) ? true : false;
}
