function HideDiv(cDiv) {
	//Hide Float
	var obj=document.getElementById(cDiv)
	if(obj){obj.style.display="none";}
}


//IE Menu
var isIE8 = IsIE8Browser();
try{
	if(!isIE8){
		if(document.body.currentStyle){
			var subs = document.getElementsByName('submenu');
			for(var i=0; i<subs.length; i++) {
				var li = subs[i].parentNode;
				if(li && li.lastChild.style) {
					li.onmouseover = function() {
						this.lastChild.style.visibility = 'visible';
					}
					li.onmouseout = function() {
						this.lastChild.style.visibility = 'hidden';
					}
				}
			}
		}
	}
}catch(err){
	//alert(err.message);
	//Not IE Or IE 8
}

function IsIE8Browser(){
	var rv=false;
	if(navigator.appName=='Microsoft Internet Explorer'){
		var ua=navigator.userAgent;
		var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
		if(re.exec(ua)!=null){
  		rv=parseFloat(RegExp.$1);}
	}
	if(rv>=8){
		return true;
	}else{
		return false;
	}
}


function OpenNewWin(sUrl,sWidth,sHeight)
{
 // IE
 var leftVal=(screen.width-sWidth)/2;
 var topVal=(screen.height-sHeight)/2;
 if(typeof(window.showModalDialog) != 'undefined'){
	window.open(sUrl, '', "width="+sWidth+", height="+sHeight+", left="+leftVal+", top="+topVal+", status=no, resizeable=no, scrollbars=no, modal=yes, dialog=yes, toolbar=no, titlebar=no, location=no, menubar=no");
 }
 // Mozilla
 else{
	window.open(sUrl, '', "width="+sWidth+", height="+sHeight+ ", left="+leftVal+", top="+topVal+", status=no, resizeable=no, scrollbars=no, modal=yes, dialog=yes");
 }
} 