
function showoverlay(docGuid) {
	document.getElementById('overlay').style.display = "block";
	
	var Elementdiv = document.getElementById("Foorter1_Overlay1_dialogwindow");
	Elementdiv.innerHTML="<iframe name='pubFrame' id='pubFrame' src='/Pages/FAwareness/GetPublication.aspx?" + docGuid + "' frameborder='no' width='700px' height='600px' scrolling='no'></iframe>";
	Elementdiv.style.display = "block";	
	
	var wh = screen.height;
	var ww = screen.width;
	
	var dh = Elementdiv.offsetHeight;
	var dw = Elementdiv.offsetWidth;
	
	var cw = document.body.offsetWidth;
	var ch = self.innerHeight;
		
	var scnWid,scnHei;
	if (self.innerHeight) // all except Explorer
	{
		scnWid = self.innerWidth;
		scnHei = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		scnWid = document.documentElement.clientWidth;
		scnHei = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		scnWid = document.body.clientWidth;
		scnHei = document.body.clientHeight;
	}
	
	Elementdiv.style.top = ((scnHei/2)-(dh/2)) + 'px';
	Elementdiv.style.left = ((scnWid/2)-(dw/2)) + 'px';
	

}

function closedialog() {
	parent.document.getElementById('overlay').style.display = 'none';
	parent.document.getElementById('Foorter1_Overlay1_dialogwindow').style.display = 'none';
}
