//****************************************************************************************//// POP UP WINDOW PROPERTIES AND METHODS//****************************************************************************************//function popUpWindow(window_name,window_url,window_height,window_width,window_top,window_left){	///*** POP UP WINDOW PROPERTIES ***///	this.WindowName		= window_name;	this.WindowURL		= window_url;	this.PopUpURL		= "";	this.Window		= 0;	this.Height		= window_height;	this.Width		= window_width;	this.Top		= window_top;	this.Left		= window_left;	this.Resizable		= 0;	this.Closed		= true;		///*** POP UP WINDOW METHODS ****///	this.CloseWindow	= ClosePopUpWindow;	this.OpenWindow		= OpenPopUpWindow;	this.SetURL		= SetPopUpURL;	this.toggleURL		= TogglePopUpURL;	this.CheckOpen		= CheckPopUpOpen;	this.OrphanWindow	= OrphanPopUpWindow;	this.WriteWindow	= WritePopUpWindow;	this.OpenPDF		= OpenPDFPopUp;	}//****************************************************************************************//// POP UP WINDOW METHOD THAT CLOSES THE POP UP WINDOW AND SETS THE CLOSED PROPERTY OF // THE WINDOW.//****************************************************************************************//function ClosePopUpWindow() {		if(!this.Closed){		this.Closed=true;  		this.Window.close();	}}//****************************************************************************************//// POP UP WINDOW METHOD THAT OPENS THE POP UP WINDOW AND SETS THE OPEN PROPERTY OF THE // WINDOW.//****************************************************************************************//function OpenPopUpWindow() {	this.Closed=false;	this.Window = open(this.WindowURL,this.WindowName,"RESIZABLE,toolbar=0,scrollbars=4,left=" + this.Left + "top=" + this.Top + ",directories=0,status=0,menubar=0,width=" + this.Width + ",height=" + this.Height);	this.Window.focus();}//****************************************************************************************//// POP UP WINDOW METHOD THAT SETS THE URL PROPERTY OF THE WINDOW.//****************************************************************************************//function SetPopUpURL(theURL){		this.WindowURL = theURL;}//****************************************************************************************//// POP UP WINDOW METHOD THAT OPENS THE POP UP WINDOW IF IT IS NOT ALREADY OPEN.   //****************************************************************************************//function TogglePopUpURL(theURL){		this.PopUpURL = theURL;		if(this.Closed){		this.OpenWindow();	}else{		this.Window.location.replace(this.WindowURL);		this.Window.focus();	}	}//****************************************************************************************//// POP UP WINDOW METHOD THAT CHECKS TO SEE IF THE WINDOW IS OPENED OR CLOSED//****************************************************************************************//function CheckPopUpOpen(){	if (this.Closed) {		return false;	}else{		return true;	}}//****************************************************************************************//// THIS FUNCTION RELEASES THE POP UP WINDOW.//****************************************************************************************//function OrphanPopUpWindow(){	this.Window.the_main_page_is_closed=true;}//****************************************************************************************//// THIS FUNCTION WRITES THE GIVEN DATA TO THE POPUP WINDOW.//****************************************************************************************//function WritePopUpWindow(the_data){	this.Window.document.write(the_data);	this.Window.document.close();}//****************************************************************************************//// THIS FUNCTION WILL OPEN THE GIVEN PDF FILE.//****************************************************************************************//function OpenPDFPopUp(the_PDF_file){	this.PopUpURL = the_PDF_file;	this.OpenWindow();}