﻿// JScript File
function ModifiedPopUp(Src,Height,Width,ImageName)
 {   
 var Height1=Height+20;
 //alert(ImageName);
          var centerWidth = (window.screen.width - Width) / 2;
          var centerHeight = (window.screen.height - Height1) / 2;
//          alert(Width);
//          alert(centerWidth);
//          alert(Height);
//          alert(centerHeight);
          var imgWindow = window.open('','','menubar=0,scrollbars=0,height='+Height1+',width='+ Width +',top='+centerHeight+',left='+centerWidth+',statusbar=0'); 
		
			imgWindow.document.write("<html><head><link href='"+Src+"CSS/newstyle.css' rel='stylesheet' type='text/css' /></head><body style='margin:0px 0px 0px 0px;'><img src='"+ImageName+"'>"); 
    		imgWindow.document.write("<br/><div  style='padding:5px 0px 0px 0px;'align='center'><a href='#' onclick='self.close();'>Close Window</a></div></body>"); 
    		imgWindow.document.close(); 
	    	imgWindow.focus();
 }
