﻿// JScript File

function showDialog(vis){
	if(vis == "block"){ 
		document.body.scroll= "no";
		//document.body.style.overflow="hidden"
	}else{
		document.body.scroll= "yes";
		//document.body.style.overflow=""
	}

	// Retrieve width and height of client browser.
	var cw = screen.width;
	var ch = screen.height;
    ch=ch+200;
	// Disable background
	var bg = parent.document.getElementById("bgDisable");
	//bg.style.width = cw;
	//bg.style.height = ch;
	bg.style.display = vis;

	//Show dialog at the center of screen.
	var dialog = parent.document.getElementById("dialog");	
	dialog.style.top = ((ch)/3)+"px";
	dialog.style.left = ((cw)/3)+"px";
	dialog.style.display = vis;
	return true;
}

