//saved as new_window.js relative to web app doc root not Smarty
//note change the padding values depending on the design of detail.php, or
//add additional params as necessary
//note remove email linewrap

function OpenNewWindow(page,h,w)
{
fwidth = w+40; // change padding value as needed
fheight = h+60; // change padding value as needed
OpenWin = window.open(page, "NewWindow","top=50,left=50,toolbar=no,height="+ fheight +",width="+ fwidth+",location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes");
}


function OpenNewFixedWindow(page)
{
OpenWin = this.open( page, "NewWindow","top=50,left=50,toolbar=yes,width=700,height=400,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");	
}



/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function printit(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}

