//begin_lib <!-- Begin External JavaScript -- DO NOT REMOVE THIS LINE -->

function jsPopup(){
this.History = false;
this.Directories = false;
this.Height = 0;
this.Width = 0;
this.Left = 0;
this.Top = 0;
this.Location = false;
this.Menus = false;
this.Resizable = false;
this.Scrollbars = false;
this.Statusbar = false;
this.Toolbar = false;
this.URL = "";
this.Name = "";
this.Content = new Array();
this.AddContent = w_AddContent;
this.Popup = w_Popup;
this.PopDynamic = w_Dynamic;
}

function w_getFeatures(ob){
var ft = ob.History ? "copyhistory" : "" ;
ft+= ob.Directories ? ",directories" : "";
ft+= ob.Height>0 ? ",height="+ob.Height : "";
ft+= ob.Width>0 ? ",width="+ob.Width : "";
ft+= ob.Left>0 ? ",left="+ob.Left+",screenX="+ob.Left : "";
ft+= ob.Top>0 ? ",top="+ob.Top+",screenY="+ob.Top : "";
ft+= ob.Location ? ",location" : "";
ft+= ob.Menus ? ",menubar" : "";
ft+= ob.Resizable ? ",resizable" : "";
ft+= ob.Scrollbars ? ",scrollbars" : "";
ft+= ob.Statusbar ? ",status" : "";
ft+= ob.Toolbar ? ",toolbar" : "";
return ft;
}

function w_AddContent(str){
this.Content.push(str);
}

function w_Popup(){
return window.open(this.URL,this.Name,w_getFeatures(this));
}

function w_Dynamic(){
var PW = window.open("",this.Name,w_getFeatures(this));
	 for(var i = 0; i < this.Content.length; i++){
	 PW.document.write(this.Content[i]);
	 }
PW.document.close();
return PW;
}

//end_lib <!-- End External JavaScript -- DO NOT REMOVE THIS LINE -->
