var newwindow = '';
var newwindow1 = '';
var newwindow2 = '';


popupWins = new Array();

function windowOpener(url, name, args) {
/*******************************
the popupWins array stores an object reference for
each separate window that is called, based upon
the name attribute that is supplied as an argument
*******************************/
if ( typeof( popupWins[name] ) != "object" ){
	popupWins[name] = window.open(url,name,args);
} else {
if (!popupWins[name].closed){
	popupWins[name].location.href = url;
} else {
	popupWins[name] = window.open(url, name,args);
}
}

popupWins[name].focus();
}



function popup(url,h,w,l,t,s,r) {
var hei = h;
var wid = w;
var lef = l;
var to = t;
var scr = s;
var res = r;
var winl = (screen.width/2);
var wint = (screen.height/2);
var winprops = "dependent,height=" + hei + ",width=" + wid + ",left=" + lef + ",top=" + to + ",scrollbars=" + scr + ",resizable=" + res;
var newwindow=window.open(url,'newwindow',winprops);
}

function popupNew(url,h,w,l,t,s,r,windowname) {
var hei = h;
var wid = w;
var lef = l;
var to = t;
var scr = s;
var res = r;
var winl = (screen.width/2);
var wint = (screen.height/2);
var winprops = "dependent,height=" + hei + ",width=" + wid + ",left=" + lef + ",top=" + to + ",scrollbars=" + scr + ",resizable=" + res;
var newwindow=window.open(url,windowname,winprops);
//var newwindow2=window.open(url,windowname,winprops);
}



function popup2(url,h,w,l,t,s,r,mbar,lbar) {
var hei = h;
var wid = w;
var lef = l;
var to = t;
var scr = s;
var res = r;
var mnubar = mbar;
var urlbar = lbar;
var winl = (screen.width/2);
var wint = (screen.height/2);
var winprops = "toolbar=yes,location=yes,menubar=" + mnubar + ",dependent,height=" + hei + ",width=" + wid + ",left=" + lef + ",top=" + to + ",scrollbars=" + scr + ",resizable=" + res;
var newwindow=window.open(url,'newwindow',winprops);
}

