function printpage() {
    window.print();  
}

var newwindow;
/**
* Name cannot have a space in it... It is a reference variable not the title name in the browser.
*/
function openpopup(name, url, width, height)
{
    attributes = 'height=' + height + ',width=' + width + ',scrollbars=1';
    
    newwindow = window.open(url,name,attributes);
    if(window.focus)
    {
        newwindow.focus()
    }
}

