	function resizeMyWindow()
	{
		
		var mObj1 = document.getElementById('overlay');
		if (mObj1)
		{
			var winW;
			var winH;
			winW = document.body.clientWidth ;
			winH = Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight);
			mObj1.style.height = winH + "px";
			mObj1.style.width = Math.max(winW,1000) + "px";
		}
		
		var mObj2 = document.getElementById('windowContainer')
		if (mObj2)
		{
			var winW;
			var winH;
			winW = document.body.clientWidth ;
			winH = Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight);
			mObj2.style.height = winH + "px";
			mObj2.style.width = Math.max(winW,1000) + "px";
		}
	}

	function openMyWindow(id,width,height,topOff,closeButton) 
	{		
		// shortcut reference to the document object
		var d = document;
	
		// if the modalContainer object already exists in the DOM, bail out.
		if(d.getElementById(id)) return;
		// create the modalContainer div as a child of the BODY element
		var mObj2 = d.createElement("div");
		mObj2.id = "windowContainer";
		mObj2.className = "windowContainer";
		 // make sure its as tall as it needs to be to overlay all the content on the page
		mObj2.style.height = document.documentElement.scrollHeight + "px";
		mObj2.style.width = document.documentElement.scrollWidth + "px";		
		
		d.getElementsByTagName("body")[0].appendChild(mObj2);
		var mObj = d.createElement("div");
		mObj.id = "windowContainer2";
		mObj.align = "center";
		 // make sure its as tall as it needs to be to overlay all the content on the page
		
		d.getElementsByTagName("body")[0].appendChild(mObj);
	
		// create the DIV that will be the alert 
		var alertObj = mObj.appendChild(d.createElement("div"));
		alertObj.style.visibility = "hidden";
		alertObj.id = id;
		alertObj.className = "myWindow";
		
		// MSIE doesnt treat position:fixed correctly, so this compensates for positioning the alert
		if (topOff + " " == " ")
			topOff = 100;
		else topOff +=50;
		
		if (width!="")
			alertObj.style.width = "" + width + "px";
		if (height!="")
			alertObj.style.height = "" + height + "px";
			
		var topx;
		if (height+topOff > document.documentElement.clientHeight) 	topx = document.documentElement.scrollTop - height  + document.documentElement.clientHeight  ;
		else topx = document.documentElement.scrollTop + topOff;
		if(d.getElementById) alertObj.style.top = topx + "px";
		
		// center the alert box
		alertObj.innerHTML = "";
		if (typeof URLPATH == "undefined") URLPATH = "";
		if (closeButton == 1)
		{
			alertObj.innerHTML = "<div style='text-align:right'><a href=javascript:void(0) style='text-decoration:none'><img style='float:right' border=0 src="+URLPATH+"images/closelabel.gif onclick=closeMyWindow('"+id+"')></a></div>";
		}
		alertObj.innerHTML += document.getElementById("content_" + id).innerHTML;
		alertObj.style.visibility = "visible";
		strLogin = document.getElementById("content_" + id).innerHTML;
		document.getElementById("content_" + id).innerHTML = "";
		// create an H1 element as the title bar
		
		
		
		var combos = document.getElementsByTagName("select");
		for (var i=0;i<combos.length;i++)
		{
			combos[i].style.visibility = "hidden";	
		}
	 	resizeMyWindow();
	}

	function closeMyWindow(id) 
	{
		document.getElementById("content_" + id).innerHTML = strLogin;
		if ($("windowContainer"))
			document.getElementsByTagName("body")[0].removeChild(document.getElementById("windowContainer"));
		if ($("windowContainer2"))
			document.getElementsByTagName("body")[0].removeChild(document.getElementById("windowContainer2"));
		var combos = document.getElementsByTagName("select");
		for (var i=0;i<combos.length;i++)
		{
			combos[i].style.visibility = "visible";	
		}
	}
	
	function notify(message,width,height,topOff)
	{
		openMyWindow("notificationWindow",width,height,topOff);
		$("notificationMessage").innerHTML = message;
	}