// JavaScript Document
function winpopup(theURL,w,h)
		{
			var wind=null;
			winX = (screen.availWidth-w)/2;
			winY = (screen.availHeight-h)/2;
			if (w > screen.width || h > screen.width)
				{
					if (w > screen.width && h <= screen.height)
						{
							var nw = screen.width - 70;
							var nh = parseInt(h) + 36
						}
					if (h > screen.height && w <= screen.width)
						{
							var nh = screen.height - 70; 
						 	var nw = parseInt(w) + 36
						}
					if (w > screen.width && h > screen.height)
						{
			 				var nh = screen.height - 70;
			 				var nw = screen.width - 70;
						}
			 		wind = window.open(theURL,"_blank","left="+winY+",top="+winY+",width=" + nw + ",height=" + nh + ",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no");
		  		}
			else
				{
					var nh = parseInt(h) + 25;
					var nw = parseInt(w) + 25;
					wind = window.open(theURL,"_blank","left="+winX+",top="+winY+",width=" + nw + ",height=" + nh + ",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no");
		  		}
		  wind.focus();
		  wind=null;
		}
