function openwin(url,w,h){
	l=(screen.width-w)/2;
	t=(screen.height-h)/2;
	feat="width="+w+",height="+h+",top="+t+",left="+l+",statusbar=no,scrollbars=yes,menubar=no";
	w1=window.open(url,'',feat);
}

function popImage(imageURL,imageTitle, defaultWidth, defaultHeight) {
    var PositionX = (screen.width-defaultWidth)/2;
    var PositionY = (screen.height-defaultHeight)/2;

    if (parseInt(navigator.appVersion.charAt(0))>=4) {
        var isNN=(navigator.appName=="Netscape") ? 1:0;
        var isIE=(navigator.appName.indexOf("Microsoft")!=-1) ? 1:0;
    }
    var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
    var optIE='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;


    if (isNN){ imgWin=window.open('about:blank','',optNN); }
    if (isIE){ imgWin=window.open('about:blank','',optIE); }
    with (imgWin.document) {
        writeln('\<html\>\<head\>\<title\>Cargando...\</title\>\<style\>body{margin:0px;}\</style\>');
        writeln('\<sc'+'ript\>');
        writeln('function doTitle(){ document.title="'+imageTitle+'";}');
        writeln('\</sc'+'ript\>');
        writeln('\</head\>\<body bgcolor="#FFFFFF" scroll="no" onload="doTitle();self.focus()"\>');
        writeln('\<img name="Imagen" src='+imageURL+' style="display:block"\>\</body\>\</html\>');
        close();
    }
}