function getHeight() {
	document.body.clientHeight; 
}


function extendAlert(msg) {
	document.getElementById("divBack2").style.height = document.body.clientHeight+document.body.scrollHeight-document.body.clientHeight; 
	document.getElementById("divBack2").style.display = "";
	alert(msg);
	document.getElementById("divBack2").style.display = "none";
}

function extendParentAlert(msg) {
	parent.document.getElementById("divBack").style.height = parent.document.body.clientHeight+document.body.scrollHeight-document.body.clientHeight; 
	parent.document.getElementById("divBack").style.display = "";
	alert(msg);
	parent.document.getElementById("divBack").style.display = "none";
}

function opaqueBody() {
	document.getElementById("divBack").style.height = document.body.clientHeight+document.body.scrollHeight-document.body.clientHeight; 
	document.getElementById("divBack").style.display = "";
}

function opaqueParentBody() {
	parent.document.getElementById("divBack").style.height = parent.document.body.clientHeight+document.body.scrollHeight-document.body.clientHeight; 
	parent.document.getElementById("divBack").style.display = "";
}

function transparentBody() {
	document.getElementById("divBack").style.display = "none";
}

function transparentParentBody() {
	parent.document.getElementById("divBack").style.display = "none";
}

function extendConfirm(msg) {
	document.getElementById("divBack").style.height = document.body.clientHeight+document.body.scrollHeight-document.body.clientHeight; 
	document.getElementById("divBack").style.display = "";
	if(confirm(msg)) {
		return "Y";
	}else {
		return "N";
	}
	document.getElementById("divBack").style.display = "none";
}

function extendParentConfirm(msg) {
	parent.document.getElementById("divBack").style.height = parent.document.body.clientHeight+document.body.scrollHeight-document.body.clientHeight; 
	parent.document.getElementById("divBack").style.display = "";
	if(confirm(msg)) {
		return "Y";
	}else {
		return "N";
	}
}

