function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

function printSetup()
    {
    var a = document.all.item("noprint");
        if (a!=null) {
            if (a.length!=null) {
                       for (i=0; i< a.length; i++) {
                a(i).style.display = window.event.type == "beforeprint" ? "none" :"inline";
            }
        } else 
        //only one tag
        a.style.display = window.event.type == "beforeprint" ? "none" :"inline";
    }
} 

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=800,height=600');");
}

function docPreview(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=540');");
}