// JavaScript Document
function alertinfo(id){
var obj = document.getElementById(id);
var W = screen.width;
var H = screen.height;
var yScroll;
var scrollstyle = scrolls();
document.body.scrollTop = 0;
if (getOs() == 1) {obj.style.top= scrollstyle.scrollTop+50+"px";}
if (getOs() == 2) {obj.style.top= "50px";}
//obj.style.top= parseInt(scrollstyle.scrollTop,10)+100+"px";
//alert(scrollstyle);

//obj.style.top= "100px";
document.getElementById("layout").style.display="block";
obj.style.display="block";

scrollstyle.style.overflowX = "hidden";
scrollstyle.style.overflowY = "hidden";
}
function closediv(id){
document.getElementById(id).style.display="none";
document.getElementById("layout").style.display="none";
var scrollstyle = scrolls();
scrollstyle.style.overflowY = "auto";
scrollstyle.style.overflowX = "hidden";
}
function scrolls(){
var temp_h1 = document.body.clientHeight;
var temp_h2 = document.documentElement.clientHeight;
var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;
var htmlbody = isXhtml?document.documentElement:document.body;
return htmlbody;
}

function close1(){
	document.getElementById('dialog1').style.display = "none";
	document.getElementById('layout').style.display = "none";
	var scrollstyle = scrolls();
	scrollstyle.style.overflowY = "auto";
	scrollstyle.style.overflowX = "hidden";
	}
function close2(){
	document.getElementById('dialog').style.display = "none";
	document.getElementById('layout').style.display = "none";
	var scrollstyle = scrolls();
	scrollstyle.style.overflowY = "auto";
	scrollstyle.style.overflowX = "hidden";
}

function close3(){
	document.getElementById('additionalInformation').style.display = "none";
	document.getElementById('layout').style.display = "none";
	var scrollstyle = scrolls();
	scrollstyle.style.overflowY = "auto";
	scrollstyle.style.overflowX = "hidden";
}
