	

	
	// pass in a select field
	//
	// returns value of selected
	// (used for compatability with Netscape)
	//
	function GetSelectedValue(a){
		var sIndex = a.selectedIndex;
		return a.options[sIndex].value;
	}

	function submitThis(){
	
		var error = false;
		var errorFields = ('');
		errormsg = ('Please do the following:');
	
		 if (document.forms[0].email.value == '') { 
			 errormsg = errormsg + ('\n enter email'); 
			 errorFields = errorFields + ('email,'); 
			 error = true; 
		 } 
	
		// 2007.12.28 RegalBuilt: Also check for Operating System
		var osvalue = document.getElementById( 'operatingsystem' ).options[ document.getElementById( 'operatingsystem' ).selectedIndex ].value;

		if( osvalue == '' )
		{ 
			errormsg	= errormsg + ('\n select operating system' ); 
			errorFields	= errorFields + ( 'operatingsystem,' );
			error		= true; 
		} 
		
		// 2008.01.02 RegalBuilt: Get the Installation Type
		var installType = document.getElementById( 'installationtype' ).options[ document.getElementById( 'installationtype' ).selectedIndex ].value;
		var ispwcuser	= document.getElementById( 'user_yes' ).checked;
	
		if( !( installType ) && ( ispwcuser ) )
		{
			errormsg	= errormsg + ('\n select installation type' ); 
			errorFields	= errorFields + ( 'installationtype,' );
			error		= true; 
		}
	
	
		if ( error ) {
			alert( errormsg );
			// split errorFields string to get fields with errors and focus
			errorFieldsArray = errorFields.split( "," );
			if ( errorFieldsArray[0] != "NONE" ) {
				focusStr = 'document.forms[0].' + errorFieldsArray[0] +'.focus()';
				eval( focusStr );
			}
			return false;
		}
		// no errors, post form with psAction from submit
		// document.forms[0].submit();
	}