
		var content_shield = null;
		var modal_dialog = null;
		function getPageSize()
		{
			var xScroll, yScroll;
			if (window.innerHeight && window.scrollMaxY) 
			{	
				xScroll = document.body.scrollWidth;yScroll = window.innerHeight + window.scrollMaxY;
			} 
			else if (document.body.scrollHeight > document.body.offsetHeight)
			{ // all but Explorer 
				MacxScroll = document.body.scrollWidth;yScroll = document.body.scrollHeight;
			} 
			else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
				xScroll = document.body.offsetWidth;yScroll = document.body.offsetHeight;
			}
			var windowWidth, windowHeight;
			if (self.innerHeight) 
			{ // all except Explorer
				windowWidth = self.innerWidth;windowHeight = self.innerHeight;
			} 
			else if (document.documentElement && document.documentElement.clientHeight) 
			{ // Explorer 6 Strict Mode
				windowWidth = document.documentElement.clientWidth;windowHeight = document.documentElement.clientHeight;
			} 
			else if (document.body) 
			{ // other Explorers
				windowWidth = document.body.clientWidth;windowHeight = document.body.clientHeight;
			}
		// for small pages with total height less then height of the viewport
			if(yScroll < windowHeight)
			{
				pageHeight = windowHeight;
			} 
			else 
			{
				pageHeight = yScroll;
			}
		// for small pages with total width less then width of the viewport
			if(xScroll < windowWidth)
			{
				pageWidth = windowWidth;
			} 
			else 
			{
				pageWidth = xScroll;
			}
			arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
			return arrayPageSize;
		}


		function launch_file_upload_internal_dialog1(imgsrc) 
		{	
			var abspath1 = imgsrc.split("images/");
			//alert(abspath1[1]);
			//var abspath2 = abspath1[1].split("&x=");
			var abspath = abspath1[1];
			
			var newImg; 
			newImg = new Image();
			newImg.src = abspath;
			
			var iheight = newImg.height;
			var iwidth = newImg.width;
			
			imgsrc1 = imgsrc.replace('&x=150','&x=300');
			imgsrc2 = imgsrc1.replace('&y=150','&y=300');
			
			imgsrc3 = imgsrc2.replace('&x=200','&x=300');
			imgsrc4 = imgsrc3.replace('&y=200','&y=300');
	
			var showheight = 400;

			//var crosspos = (screen.width/2) + (showwidth/2) -30;
			
			dialog_html ="<table width='110' height='90' border='0' align='center' cellpadding='0' cellspacing='0' class='fore-side-border'>";
			dialog_html += "<tr><td>";
			//dialog_html += "<div style='border: 5px solid #000000;' ><img src='image/"+abspath+"' height='"+showheight+"px;' ></div>";
			dialog_html += "<div style='border: 5px solid #000000;' ><img src='"+imgsrc4+"' width=210></div>";
			dialog_html += "</td></tr>";
			dialog_html += "</table>";
			
			show_modal_dialog(dialog_html);
		}
		
		
		function body_onscroll()
		{
			window.status = getScrollXY();
		}
		
		function show_modal_dialog(dialog_html) 
		{
			modal_dialog = document.getElementById("internal_dialog");
			modal_dialog.innerHTML = dialog_html;
			modal_dialog.style.display = "block";
			
			getMouseXY;
		}

		function getMouseXY(e) 
		{
		
		//alert(e);
		var tempX = 0;
		var tempY = 0;
		var modal_dialog = document.getElementById("internal_dialog");
		var IE = document.all?true:false
		
		// If NS -- that is, !IE -- then set up for mouse capture
		if (!IE) document.captureEvents(Event.MOUSEMOVE);
	
	  if (IE) { // grab the x-y pos.s if browser is IE
		
		var scrollTop = window.pageYOffset || document.documentElement.scrollTop || 0; 
	  	var scrollLeft = window.pageXOffset || document.documentElement.scrollLeft || 0;
		
		tempX = event.clientX + scrollLeft;
		tempY = event.clientY + scrollTop;
	  } else {  // grab the x-y pos.s if browser is NS
		tempX = e.pageX
		tempY = e.pageY
	  }  
	  // catch possible negative values in NS4
	  if (tempX < 0){tempX = 0}
	  if (tempY < 0){tempY = 0}  
	  // show the position values in the form named Show
	  // in the text fields named MouseX and MouseY
	  
	  //modal_dialog = document.getElementById("internal_dialog");
		var pgs = getPageSize();

		
		var north = tempY;
		var south = pgs[3]-tempY;
		var west = tempX;
		var east = pgs[2]-tempX;

		
		
		//alert(tempY);
		//alert(tempX);
		
		modal_dialog.style.left = tempX+"px";
		modal_dialog.style.top = tempY+"px";
		
		if(east<300)
		{
			modal_dialog.style.left = tempX-170+"px";
		}
		if(south<300)
		{
			modal_dialog.style.top = tempY-300+"px";
		}
		return true;
	}
	
	function hide_modal_dialog() 
	{
		document.getElementById("internal_dialog").style.display = "none";
		
	}

	document.onmousemove = getMouseXY;
