var win = null;
 function NewWindow(mypage,myname,w,h,scroll){
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
 TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
 settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage,myname,settings)
}

function generalWindow(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=yes,status=yes,left=100,top=20,screenX=250,screenY=100');
}

function openScript(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=no,menubar=no,align=center,status=no,left=250,top=100,screenX=250,screenY=100');
}

function showPic(url, width, height) {
        var Win = window.open(url,"showPic",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=no,menubar=no,align=center,status=no,left=250,top=100,screenX=250,screenY=100');
}

function SEWindow02(wintype) { 
SmallWin=window.open(wintype,"SmallWin","toolbar=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=770,height=540,left=50,top=50"); } 


function ReportWindow(wintype) { 
SmallWin=window.open(wintype,"SmallWin","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,width=780,height=540,left=50,top=50"); } 

function printableversion(id) {
        var Win = window.open('/aboutus/worldwideoperations/WWOPrintdetails.aspx?id='+id,"openScript",'width=613,height=600,resizable=yes,scrollbars=yes,menubar=no,align=centre,status=no,left=250,top=100,screenX=250,screenY=100');
}

function launchMediImage(winWidth,winHeight,url) {
	scrx = screen.width;
	scry = screen.height;
	winX = (scrx/2)-(winWidth/2);
	winY = (scry/2)-(winHeight/2);
	enlargementWin = open('','externallink','directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no,width='+winWidth+',height='+winHeight+',left='+winX+',top='+winY+',screenX='+winX+',screenY='+winY+',resizeable=no');
	enlargementWin.moveTo(winX,winY);
	enlargementWin.location=url;
	enlargementWin.focus();
	return false;
	}