// JavaScript Document
var dOpa = "50";
var offHeight;
var imW = 0;
var imH = 0;
function openWindow(strHtml,mH,mW){
	imW = mW;
	imH = mH;
	offHeight = window.screen.height;
	var div = document.createElement("DIV");
	div.id = "errMsg";
	div.style.left = 0;
	div.style.top = 0;
	div.style.width=document.body.scrollWidth;
	if(document.body.scrollHeight<document.body.offsetHeight){
		div.style.height = document.body.offsetHeight;
	}else{
		div.style.height = document.body.scrollHeight;
	}
	div.style.position = "absolute";
	div.style.display = "";
	div.style.zIndex = "000000";
	div.style.filter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
	div.style.backgroundColor="#005ACC";
	document.body.appendChild(div);
	var divHtml = document.getElementById(strHtml);
	divHtml.style.position = "absolute";
	divHtml.style.zIndex="1000";
	divHtml.style.display = "";
	focusDiv(strHtml);
}

function focusDiv(strHtml){
	var loginDiv = document.getElementById(strHtml);
	//alert(document.body.offsetWidth);
	loginDiv.style.left = (document.body.offsetWidth-imW)/2;
	loginDiv.style.top = (document.body.offsetHeight-imH)/2 + document.body.scrollTop;
	//loginDiv.style.top = 100;
	loginDiv.style.display = "block";
	
}
function hiddenFlashLoginWindow(strHtml)
{
	var aa = document.getElementById(strHtml);
	aa.style.display = "none";
	var bb = document.getElementById("errMsg");
	document.body.removeChild(bb);
}

