        function wpup(url, width, height)
        {
                //alert ("!");
                var left = (screen.availWidth - width) / 2
                var top = (screen.availHeight - height) / 2
                width+=5;
                height+=5;
                wId=window.open(url, "", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left='+left+',top='+top+',width='+width+',height='+height);
                wId.focus();
        }


function DoOpen(file,w,h) {
window.open (file,"preview","width="+w+",height="+h+"resize=0")
}
