/////////////////////////////////////////////
function OpenPop1(fichero)
{
 window.open(fichero,"pop1","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,titlebar=yes,resizable=yes,height=400,width=720,top=5,left=5")
}
/////////////////////////////////////////////
function OpenPop2(fichero)
{
 window.open(fichero,"pop2","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,titlebar=yes,resizable=yes,height=480,width=720,top=5,left=5")
}
/////////////////////////////////////////////
function OpenPop3(fichero)
{
 window.open(fichero,"pop3","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,titlebar=yes,resizable=yes,height=480,width=570,top=5,left=5")
}
/////////////////////////////////////////////
function OpenPop4(fichero)
{
 window.open(fichero,"pop4","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,titlebar=yes,resizable=yes,height=500,width=540,top=5,left=5")
}
/////////////////////////////////////////////
function OpenPop5(fichero)
{
 window.open(fichero,"pop5","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,titlebar=yes,resizable=yes,height=500,width=560,top=2,left=2")
}
/////////////////////////////////////////////
function center(){
w=800;
h=600;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/5 : 0;
top.window.moveTo(LeftPosition,TopPosition);
if (document.all) {
top.window.resizeTo(w,h);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = 600;//screen.availHeight;
top.window.outerWidth = 800;//screen.availWidth;
}
}
}
/////////////////////////////////////////////
function writetoLyr(name, message) {
    if (document.layers) {
        document.layers[name].document.close();
        document.layers[name].document.write(message);
        document.layers[name].document.close();
    } else {
        if (document.all) {
            eval("document.all." + name + ".innerHTML='" + message + "'");
        } else {
            document.getElementById(name).innerHTML = message;
        }
    }
}

