function openWindowScroll(loc,width,height)
{	
	var Xscreen = 0
	var sizeX = 0
     	var Yscreen = 0
     	var sizeY = 0
      	where = ''
      
      //Netscape Version of new open window
      //window is opened in the centre of the browser
      
	if (parseInt(navigator.appVersion) >= 3) {
	
        	if(navigator.appName == "Netscape") {
            		Xscreen = (window.top.screenX);
            		sizeX = ((window.top.innerWidth/2)-(width/2));  
				// replace 120 with a variable of new window width
            		sizeX = Math.floor(sizeX);
            		sizeX = Xscreen + sizeX;

            		Yscreen = (window.top.screenY);
            		sizeY = ((window.top.outerHeight/2)-(height/2));  
				// replace 120 with a variable of new window height
            		sizeY = Math.floor(sizeY);
            		sizeY = Yscreen + sizeY;
               		where = 'width='+width+',height='+height+',screenX='+sizeX+',screenY='+sizeY+',scrollbars';
<!--alert(where);//-->
<!--alert(width);//-->
<!--alert(height);//-->
        		var extraWindow = window.open(loc,"extraWindowName",where);
        	}
        
//Now figure out how it works in IE
		if(navigator.appName == "Microsoft Internet Explorer") {
			sizeX=((screen.width/2)-(width/2));
			sizeX = Math.floor(sizeX);
			sizeY=((screen.height/2)-(height/2));       
 			sizeY = Math.floor(sizeY);

	<!--		alert(sizeX);
	<!--		alert(sizeY);
			where = 'left='+sizeX+',top='+sizeY+',width='+width+',height='+height+',scrollbars=yes, status=yes';
	<!--		alert(where);
			var extraWindow = window.open(loc,"extraWindowName",where);
            <!--var extraWindow = window.open(loc,"extraWindowName","left=400,top=400,width=240,height=320");//-->
        	}
     
      	}
      	
      	return false;
}


function openWindowTool(loc,width,height)
{	
	var Xscreen = 0
	var sizeX = 0
     	var Yscreen = 0
     	var sizeY = 0
      	where = ''
      
      //Netscape Version of new open window
      //window is opened in the centre of the browser
      
	if (parseInt(navigator.appVersion) >= 3) {
	
        	if(navigator.appName == "Netscape") {
            		Xscreen = (window.top.screenX);
            		sizeX = ((window.top.innerWidth/2)-(width/2));  
				// replace 120 with a variable of new window width
            		sizeX = Math.floor(sizeX);
            		sizeX = Xscreen + sizeX;

            		Yscreen = (window.top.screenY);
            		sizeY = ((window.top.outerHeight/2)-(height/2));  
				// replace 120 with a variable of new window height
            		sizeY = Math.floor(sizeY);
            		sizeY = Yscreen + sizeY;
               		where = 'width='+width+',height='+height+',screenX='+sizeX+',screenY='+sizeY+',toolbar';
<!--alert(where);//-->
<!--alert(width);//-->
<!--alert(height);//-->
        		var extraWindow = window.open(loc,"extraWindowName",where);
        	}
        
//Now figure out how it works in IE
		if(navigator.appName == "Microsoft Internet Explorer") {
			sizeX=((screen.width/2)-(width/2));
			sizeX = Math.floor(sizeX);
			sizeY=((screen.height/2)-(height/2));       
 			sizeY = Math.floor(sizeY);

	<!--		alert(sizeX);
	<!--		alert(sizeY);
			where = 'left='+sizeX+',top='+sizeY+',width='+width+',height='+height+', status=yes, toolbar=yes';
	<!--		alert(where);
			var extraWindow = window.open(loc,"extraWindowName",where);
            <!--var extraWindow = window.open(loc,"extraWindowName","left=400,top=400,width=240,height=320");//-->
        	}
      	}
}

function openWindow(loc,width,height)
{	
	var Xscreen = 0
	var sizeX = 0
     	var Yscreen = 0
     	var sizeY = 0
      	where = ''
      
      //Netscape Version of new open window
      //window is opened in the centre of the browser
      
	if (parseInt(navigator.appVersion) >= 3) {
	
        	if(navigator.appName == "Netscape") {
            		Xscreen = (window.top.screenX);
            		sizeX = ((window.top.innerWidth/2)-(width/2));  
				// replace 120 with a variable of new window width
            		sizeX = Math.floor(sizeX);
            		sizeX = Xscreen + sizeX;

            		Yscreen = (window.top.screenY);
            		sizeY = ((window.top.outerHeight/2)-(height/2));  
				// replace 120 with a variable of new window height
            		sizeY = Math.floor(sizeY);
            		sizeY = Yscreen + sizeY;
               		where = 'width='+width+',height='+height+',screenX='+sizeX+',screenY='+sizeY+'';
<!--alert(where);//-->
<!--alert(width);//-->
<!--alert(height);//-->
        		var extraWindow = window.open(loc,"extraWindowName",where);
        	}
        
//Now figure out how it works in IE
		if(navigator.appName == "Microsoft Internet Explorer") {
			sizeX=((screen.width/2)-(width/2));
			sizeX = Math.floor(sizeX);
			sizeY=((screen.height/2)-(height/2));       
 			sizeY = Math.floor(sizeY);

	<!--		alert(sizeX);
	<!--		alert(sizeY);
			where = 'left='+sizeX+',top='+sizeY+',width='+width+',height='+height+',scrollbars=no';
	<!--		alert(where);
			var extraWindow = window.open(loc,"extraWindowName",where);
            <!--var extraWindow = window.open(loc,"extraWindowName","left=400,top=400,width=240,height=320");//-->
        	}
      	}
}