var x = 20;
var y = 70;
function $x(id) { return document.getElementById(id); }
function setVisible(obj)
{
	obj = document.getElementById(obj);

		//alert(getwsize()[0]+"x"+getwsize()[1]);
		$x('maskx').style.width=getwsize()[0]+"px";
		$x('maskx').style.height=getwsize()[1]+"px";
		$x('maskx').style.top="0px";
		$x('maskx').style.left="0px";
		$x('maskx').style.zIndex=1000;
		obj.style.zIndex=1001;
		$x('maskx').style.display="block";
		obj.style.display ='block';
		placeIt('disable_div');
}
function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = ((getwsize()[0]/2)-200) + 'px' ;
	obj.style.top = (theTop+150) + 'px' ;
	$x('maskx').style.top=(theTop-70)+"px";
	$x('maskx').style.width=getwsize()[0]+"px";
	$x('maskx').style.height=getwsize()[1]+"px";
	setTimeout("placeIt('disable_div')",10);
}

function getwsize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return new Array(myWidth-18, myHeight);
}