
// <!-- hide this from non-java-enabled browsers

		
	// ------------------------------------------------------------------------------------
	// openWindow
	// ------------------------------------------------------------------------------------
	// Parameter List:
	//
	//	• sURL			string -- the url of the file whose contents to display in the new window
	//	• nWidth		number -- the width of the new window in pixels
	//	• nHeight		number -- the height of the new window in pixels
	// 	• bResizable	boolean -- 0 or 1, indicates if the window is to be resizable 
	// 	• bStatus		boolean -- 0 or 1, indicates if the window is to have a status bar
	// 	• bMenubar		boolean -- 0 or 1, indicates if the window is to have a menu bar
	// 	• bToolbar		boolean -- 0 or 1, indicates if the window is to have a tool bar 
	// ------------------------------------------------------------------------------------
	// Remarks:
	//
	//	• Creates a new window and puts the contents of the file found at sURL in the window.
	//	• Has options preset regarding the window's menus, toolbars, etc. 
	//	• Centers the new window on the screen.
	// ------------------------------------------------------------------------------------
	// Requirements:
	//
	//	•
	// ------------------------------------------------------------------------------------
	// History:
	//
	//	• 03.06.2002 -- threedeadflies@hotmail.com -- wrote the function
	// ------------------------------------------------------------------------------------
	//
	function openWindow( sURL, nWidth, nHeight, bResizable, bStatus, bMenubar, bToolbar, bScrollbars, nTop, nLeft, sWindowName) 
	{ 
		var n_Left = 0 ;
		var n_Top = 0 ;
		var i = 0 ;
			
		// if a 'LEFT' value is received, apply it to the window location:
		if(nLeft || (nLeft == 0) )
		{
			n_Left = nLeft ;
		}
		else
		{
			n_Left = ( screen.availWidth - ((nWidth)?nWidth:700) ) / 2  ;  
		}
		
		// if a 'TOP' value is received, apply it to the window location:
		if(nTop || (nTop == 0) )
		{
			n_Top = nTop ;
		}
		else
		{
			n_Top = ( screen.availHeight - ((nHeight)?nHeight:600) ) / 2 ; 
		}
		return( window.open( sURL, (sWindowName?sWindowName:"bananahead"), "resizable=" + ((bResizable)?bResizable:0) + ", status=" + ((bStatus)?bStatus:0) + ", menubar=" + ((bMenubar)?bMenubar:0) + ", toolbar=" + ((bToolbar)?bToolbar:0) + ", left=" + n_Left + ", top=" + n_Top + ", width=" + nWidth + ", height=" + nHeight + ", scrollbars=" + ((bScrollbars)?bScrollbars:0), true ) ) ; 
	} 

	
	// oSelect -- object -- the SELECT object from which to collect the selected item
	// oField -- object -- the ELEMENT object to which to assign the selected value 
/*	function storeSelectedValue(oSelect, oField) ;
	{
			for( i = 0 ; i < oSelect.options.length ; i++ ) 
		{
			if( oSelect.options[i].selected ) 
			{
				oField.value = oSelect.options[i].value ;
				break ; 
			}
		}
	}
*/	

	// ------------------------------------------------------------------------------------
	// remove single quote marks (' and ") from all strings -- it's a SQL thing:
	// ------------------------------------------------------------------------------------
	function tickHandler(sString) 
	{
		var s = new String(sString) ;
		var sReturn = new String() ;
		var ar1 = s.split("'") ; // use the String.Split() method to cut out the ['] characters
		for(var i = 0; i < ar1.length; i++) 
		{
			sReturn += ar1[i] ;
		}
		var ar2 = sReturn.split('"') ; // use the String.Split() method to cut out the ["] characters
		sReturn = "" ; // re-initialize the 'sReturn' variable
		for(i = 0; i < ar2.length; i++) 
		{
			sReturn += ar2[i] ;
		}
		return(sReturn) ;
	}


	function processForm(oForm)
	{
		with( oForm )
		{
			//' State = selState.options[selState.selectedIndex].value ;
			for( var i = 1; i < 4; i++ )
			{
				elements("Pet" + i + "_Type") = elements("Type_Pet" + i).options[elements("Type_Pet" + i).selectedIndex].value ;
			}
			for( var i = 1; i < 5; i++ )
			{
				elements("Pet" + i + "_Sex") = elements("Sex_Pet" + i).options[elements("Sex_Pet" + i).selectedIndex].value ;
			}
	
			// everything looks good -- go ahead and submit the form's content for processing:
			submit() ;
		}
	}
	
	function testPath()
	{
		alert("yep, you made it to the included JavaScript file...") ;
	}
//-->	


