  function openWin(url,name,width,height){

	height = (height > screen.height ? screen.height - 64 : height);
	if(width > screen.width)
		width = screen.width - 12;
	else
		width = width;

	topp = (height < screen.height-64 ? screen.height/2 - height/2 : 4);

	left=(screen.width/2 - width/2 - 5)


    wasOpen  = false;
    win = window.open(url,name,"width="+width+",height="+height+",top="+topp+",left="+left)
    return (typeof(win)=='object')?true:false;
  }