//<script>  script by R. Alvez @ I.T.two Inc.
/*

 This script takes 6 parameters: 
 targetfile = the name of the .html we want to open in the pop-up window, 
 pwidth=width of the pop up window, 
 pheight=the height of the pop-up window, 
 wleft=distance from the left corner of the screen to the pop-up window, 
 wtop= distance from the top of the screen to the pop-up window and 
 wscroll = a boolean value (true/false) to indicate that we want a scoll bar on the new window or not.
 Example of use: <a href="javascript:popup('t1.html','300','180','200','50',false)">test</a>

Ver: 2.0 -- Sept. 8th., 2005

*/

function popup(targetfile,pwidth,pheight,wleft,wtop,wscroll){
if (wscroll == true){
wscroll ="yes";
} else {
 wscroll = "no";
}

var popname=eval("\'" + "PopUp" + "\'");
var params = eval("\'" + "width=" + pwidth + ", height=" + pheight + ", left=" + wleft + ", top=" + wtop + ",scrollbars=" + wscroll  + "\'");
targetfile  = eval("\'" + targetfile + "\'"); 
// alert(targetfile + "," + popname + "," + params );
window.open( targetfile , popname , params );
}
