

// start script for launching external child window

function winLaunch (url) {
	window.open(url,'acknowledge','width=545,height=380,resizable')
}


function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=515,height=375,screenX=150,screenY=150,top=150,left=150')
}

function showPopUpMsg(msg, title)
{

 	var popup = document.createElement("div");
 	popup.id = "popupMsg";
 	
 	popup.style.cssText = "position:absolute; text-align: center; width: 350px; left: 400px; top: 200px; height:auto; border: 2px solid #9EA374; background-color: #FFFFFF; padding: 5px 5px 5px 5px; z-index: 100;";

	
	popup.innerHTML = '<div style="background-color: #D9D5BD;"><div class="float_left" style="padding-top: 2px;"><b>' + title + '</b></div><div class="float_right"><a href="javascript:void(0);" onclick="javascript:hidePopUpDiv(\'popupMsg\');">close</a></div></div><br/><br/><div style="text-align: left;">' + msg + '</div></div>';
	document.body.appendChild(popup);

	popup.style.position = 'fixed';
	popup.style.left = '50%';
	popup.style.top = '200px';
	popup.style.marginLeft = '-150px';
	popup.style.zIndex = '200';
	

}


function findPos(obj) 
{
	var curleft = curtop = 0;
	if (obj.offsetParent) {
	do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);

	return [curleft,curtop];
	}
}

function hidePopUpDiv(id)
{
	var divObj = document.getElementById(id);
	document.body.removeChild(divObj);
}