// popup Created by  S. Barlas 08.11.2001
// This function opens a pop-up window 
// The Imputs:
// URL  : the relative URL path of the document to open in the window
// scroll : value of 1 - scrollable , 0 - no scroll bars
// width : width of window in pixels
// height : height of window in pixels 

function popup(URL, scroll, width, height) 
{
 day = new Date();
 id = day.getTime();
 
 popup(URL, scroll, width, height, id);
}

function popup(URL, scroll, width, height, id)
{ 
 eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=" + scroll + ",location=0,statusbar=0,menubar=1,resizable=1,width=" + width + ",height=" + height + "');")
}

function popUp1(URL) 
{
 day = new Date();
 id = day.getTime();

 eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=1,resizable=1,width=344,height=270');");
}

function popUp2(URL) 
{
 day = new Date();
 id = day.getTime();

 eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=455,height=270');");
}

function popup1(URL, scroll, width, height) 
{
 day = new Date();
 id = day.getTime();

 eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=" + scroll + ",location=1,statusbar=1,menubar=1,resizable=1,width=" + width + ",height=" + height + "');");
}
