// JavaScript Document
var screenLocked=false;
function resize_Lock(){
	var d=document.getElementsByTagName('body')[0];
	var ie=document.all && !window.opera
	var domclientWidth=document.documentElement && parseInt(document.documentElement.clientWidth) || 100000 //Preliminary doc width in non IE browsers
	
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	scroll_top=(ie)? standardbody.scrollTop : window.pageYOffset
	scroll_left=(ie)? standardbody.scrollLeft : window.pageXOffset
	docwidth=(ie)? standardbody.clientWidth : (/Safari/i.test(navigator.userAgent))? window.innerWidth : Math.min(domclientWidth, window.innerWidth-16)
	docheight=(ie)? standardbody.clientHeight: window.innerHeight
	
	var docheightcomplete=(standardbody.offsetHeight>standardbody.scrollHeight)? standardbody.offsetHeight : standardbody.scrollHeight;
	//alert(Math.floor(parseInt(docwidth-1001)/2));
	var Left=Math.floor(parseInt(docwidth-1001)/2)+200;
	if(Left<200) Left=200;
	//alert(Left);
	document.getElementById("lockDiv").style.left =Left+'px';
	document.getElementById("lockDiv").style.top ='140px';
	document.getElementById("lockDiv").style.width=(1001-210)+"px";
	
	document.getElementById("lockDiv").style.height=docheightcomplete-150+"px";	
	//alert((clientY)-100+"px");
	document.getElementById('div_form').style.marginTop = (clientY)-20+"px";
	document.getElementById('div_form').style.marginLeft = 370+"px";

}

function show_Lock(){
	screenLocked=true;
	/*
	var d=document.getElementsByTagName('body')[0];
	var ie=document.all && !window.opera
	var domclientWidth=document.documentElement && parseInt(document.documentElement.clientWidth) || 100000 //Preliminary doc width in non IE browsers
	
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	scroll_top=(ie)? standardbody.scrollTop : window.pageYOffset
	scroll_left=(ie)? standardbody.scrollLeft : window.pageXOffset
	docwidth=(ie)? standardbody.clientWidth : (/Safari/i.test(navigator.userAgent))? window.innerWidth : Math.min(domclientWidth, window.innerWidth-16)
	docheight=(ie)? standardbody.clientHeight: window.innerHeight
	
	var docheightcomplete=(standardbody.offsetHeight>standardbody.scrollHeight)? standardbody.offsetHeight : standardbody.scrollHeight;
	alert(Math.floor(parseInt(docwidth-1001)/2));
	document.getElementById("lockDiv").style.left =Math.floor(parseInt(docwidth-1001)/2)+200+'px';
	document.getElementById("lockDiv").style.top ='140px';
	document.getElementById("lockDiv").style.width=(1001-220)+"px";
	document.getElementById("lockDiv").style.height=docheightcomplete-150+"px";
	*/
	resize_Lock();
	document.getElementById("lockDiv").style.display  = ''; 
	document.getElementById("div_form").style.display  = ''; 

}
function hide_Lock(){
	screenLocked=false;
	document.getElementById("lockDiv").style.display  = 'none'; 
	document.getElementById("div_form").style.display  = 'none'; 

}
//General Checks
