var win = null;

function show(name)
{
    var l=0,t=0,h=0,w=0;

    h= 338;
    w = 800;

    var scrollbars = "yes";

    l = new Number(((screen.width-w)/2));
    t = new Number(((screen.height-h)/2));

    var winproperties = "status=no,resizable=no,scrollbars="+scrollbars+",menubar=no,location=no,toolbar=no,directories=no,width="+w.toString()+",height="+h.toString()+",left="+l.toString()+",top="+t.toString();
    var file = name+".html";
    var win = window.open(file,name,winproperties);
    win.focus();
}

function showPopUp(file, h, w, scrollbars)
{
    
    if (win != null)
    {
    	win.close();
    }
    
    var l=0,t=0;

    l = new Number(((screen.width-w)/2));
    t = new Number(((screen.height-h)/2));

    var winproperties = "status=no,resizable=no,scrollbars="+scrollbars+",menubar=no,location=no,toolbar=no,directories=no,width="+w.toString()+",height="+h.toString()+",left="+l.toString()+",top="+t.toString();

    var win = window.open(file,"popup",winproperties);
    win.focus();
}

function showPrelisten(file, h, w, scrollbars)
{
    var l=0,t=0;

    l = new Number(((screen.width-w)/2));
    t = new Number(((screen.height-h)/2));

    var winproperties = "status=no,resizable=no,scrollbars="+scrollbars+",menubar=no,location=no,toolbar=no,directories=no,width="+w.toString()+",height="+h.toString()+",left="+l.toString()+",top="+t.toString();

    var win = window.open(file,"prelisten",winproperties);
    win.focus();
}

function showTourWin(file, h, w, scrollbars)
{
    
    if (win != null)
    {
    	win.close();
    }
    
    var l=0,t=0;

    l = new Number(((screen.width-w)/2));
    t = new Number(((screen.height-h)/2));

    var winproperties = "status=no,resizable=no,scrollbars="+scrollbars+",menubar=no,location=no,toolbar=no,directories=no,width="+w.toString()+",height="+h.toString()+",left="+l.toString()+",top="+t.toString();

    var win = window.open(file,"tour",winproperties);
    win.focus();
}