
function OpenNewWindow(url, x, y) 
{

var xc=Math.floor((screen.width-x)/2);
var yc=Math.floor((screen.height-y)/2)-24; 
window.open(url, Math.floor(Math.random()*100), 'status=0,screenx=0,screeny=0,left='+xc+',top='+yc+',alwaysRaised=no,toolbar=0,menubar=no,directories=0,resizable=no,scrollbars=1,width='+x+',height='+y+''); 

}