function doPopUp(file,args)
	{
		 // Your one-stop open window function!
		// Author: Craig Moran
		//  Date of Creation: Feb 5, 2002
		// Project Name: ALTRC
		// Purpose: Consolidate all pop-up functions into ONE popup (and they said it
		// couldn't be done....)
		 


		 // Args is a comma-separated list of window properties.
		 // If you wish to change toolbar, location, etc, send it to the
		 // doPopUp function.  If you don't want to change, then just send
		 // the file name

		var ClientArray, myelem, elem  = new Object; 
		var ToolbarArray = new Array();
		var mystring="";
		var dlg;

		// Default properties for 
		// window...
		
		ToolbarArray[0]="toolbar=0"
		ToolbarArray[1]="location=0"
		ToolbarArray[2]="directories=0"
		ToolbarArray[3]="status=0"
		ToolbarArray[4]="scrollbars=yes"
		ToolbarArray[5]="resizable=0"
		ToolbarArray[6]="copyhistory=0"
		ToolbarArray[7]="width=640"
		ToolbarArray[8]="height=480"
		ToolbarArray[9]="top=10"
		ToolbarArray[10]="left=10"
		ToolbarArray[11]="menubar=0"
		
		if(args != null){  // do the following ONLY if the client hasn't sent any arguments other than file name
		ClientArray=args.split(",");
		for(var i=0; i< ToolbarArray.length; i++)
			{
				for(var j=0; j < ClientArray.length; j++)
					{
						// Split ToolbarArray and ClientArray using '=' as delimiter
						elem=ToolbarArray[i];
						elem=elem.split("=");

						myelem=ClientArray[j];
						myelem=trim(myelem); // eliminate any whitespace.  Refer to ssi/trim.js
						myelem=myelem.split("=");
						
						// Compare just the zero-th elements (i.e: toolbar, location)
						// If there is a match, set the first element of ToolbarArray
						// to the value of the first element of ClientArray

						if(elem[0] == myelem[0]){
							ToolbarArray[i] = ClientArray[j];
						}
						
						
					}
			}
		}
		for(var x=0; x < ToolbarArray.length; x++)
			{
				mystring += ToolbarArray[x] + ",";
			}
		// slice off last comma
		mystring=mystring.substr(0,mystring.length-1);
		// open sesame
		dlg=window.open(file,"NewWindow", mystring);
	}

	

	