<!--
		// Ensure the user of this form has entered the required fields.
		function validateData()
		{
			var txtEmail			= document.getElementById( "EMAIL"	);
			var bRequirementsMet	= true;
			var txtFocusField;
			
			if( bRequirementsMet && ( txtEmail.value.length == 0 ) ) {
				txtFocusField = txtEmail;
				bRequirementsMet = false;
			}
			
			if( !bRequirementsMet ) {
				window.alert( "\nPlease enter your email address.\n" );
				txtFocusField.focus();
			} else {
				if( bRequirementsMet && txtEmail.value.length > 0 ) {
					var nAtSymbolIndex = txtEmail.value.indexOf( "@" );
					var sUserName      = "";
					var sServerName    = "";
					
					if( nAtSymbolIndex > 0 && nAtSymbolIndex < txtEmail.value.length - 1 ) {
						sUserName = txtEmail.value.substring( 0, nAtSymbolIndex );
						sServerName = txtEmail.value.substring( nAtSymbolIndex + 1 );
						nAtSymbolIndex = sServerName.indexOf( "." );
					}
					if( nAtSymbolIndex == -1 || sUserName.length == 0 || sServerName.length == 0 ) {
						window.alert( "You have entered an invalid email address. Please enter a correct email address." );
						txtEmail.focus
						bRequirementsMet = false;
					}
				}
			}
			return bRequirementsMet;
		}		
		
		// Retrieve an element by it's ID attribute
		// NOTE: This function is used in place of
		//  'document.getElementById() to support
		//  Internet Explorer 4.01.
		function getElementById( id ) {
			if( typeof( document.getElementById ) == "undefined" ) {
				for( var i = 0; i < document.all.length; i++ ) {
					var el = document.all( i );
					if( el.id == id ) {
						return el;
					}
				}
			}
			else {
				return document.getElementById( id );
			}
		}
		
		
		// Initialize the document
		function init() {
			var statusSeller	= getElementById( "STATUS_SELLER"	);

			if( statusSeller.checked ) {
				status = "Seller";
			}
			
			enableSection( status );
			size( getElementById( "TABLE_PICTURES" ) );
			var backgroundImage = getElementById( "BACKGROUND_IMAGE" );
			if( typeof( backgroundImage ) != "undefined" && backgroundImage != null ) {
				backgroundImage.style.visibility = "visible";
			}
			enableAddressFields( false );
			
			window.moveTo( 0, 0 );
			window.resizeTo( screen.availWidth, screen.availHeight );
			
			getElementById( "FIRST_NAME" ).onkeypress = Capitalize;
			getElementById( "LAST_NAME" ).onkeypress = Capitalize;
			getElementById( "STREET_NAME" ).onkeypress = Capitalize;
			getElementById( "CITY" ).onkeypress = Capitalize;
			getElementById( "STATE" ).onkeypress = Capitalize;
			getElementById( "LAST_NAME" ).onkeypress = Capitalize;
			getElementById( "SELLER_STREET_NAME" ).onkeypress = Capitalize;
			getElementById( "SELLER_CITY" ).onkeypress = Capitalize;
			getElementById( "SELLER_STATE" ).onkeypress = Capitalize;
			getElementById( "SELLER_COUNTY" ).onkeypress = Capitalize;
			getElementById( "SELLER_AREA" ).onkeypress = Capitalize;
		}	
		
		// Enable the Buyer, Seller or both sections
		function enableSection( section ) {
			setControl( getElementById( "SELLER_LOCATION_SAME_ADDRESS"		), section == "Buyer" );
			setControl( getElementById( "SELLER_HOUSE_NO"					), section == "Buyer" );
			setControl( getElementById( "SELLER_STREET_NAME"				), section == "Buyer" );
			setControl( getElementById( "SELLER_SUITE_NO"					), section == "Buyer" );
			setControl( getElementById( "SELLER_CITY"						), section == "Buyer" );
			setControl( getElementById( "SELLER_STATE"						), section == "Buyer" );
			setControl( getElementById( "SELLER_ZIP"						), section == "Buyer" );
			setControl( getElementById( "TXT_SELLER_LOCATION"				), section == "Buyer" );
					
			enableAddressFields( false );
		}
		
		function enableAddressFields( clearValues ) {
			var disable = getElementById( "SELLER_LOCATION_SAME_ADDRESS" ).checked;
						  
			
			var ctrlHouseNo		= getElementById( "SELLER_HOUSE_NO"    );
			var ctrlStreetName	= getElementById( "SELLER_STREET_NAME" );
			var ctrlSuiteNo		= getElementById( "SELLER_SUITE_NO"    );
			var ctrlCity		= getElementById( "SELLER_CITY"        );
			var ctrlState		= getElementById( "SELLER_STATE"       );
			var ctrlZip			= getElementById( "SELLER_ZIP"         );
			
			setControl( ctrlHouseNo,	disable );
			setControl( ctrlStreetName,	disable );
			setControl( ctrlSuiteNo,	disable );
			setControl( ctrlCity,		disable );
			setControl( ctrlState,		disable );
			setControl( ctrlZip,		disable );
			
			setControl( getElementById( "TXT_SELLER_STREET_NAME"	), disable );
			setControl( getElementById( "TXT_SELLER_SUITE_NO"		), disable );
			setControl( getElementById( "TXT_SELLER_CITY"			), disable );
			setControl( getElementById( "TXT_SELLER_ZIP"			), disable );
			
			
			if( disable ) {
				setValue( ctrlHouseNo,		"HOUSE_NO"		);
				setValue( ctrlStreetName,	"STREET_NAME"	);
				setValue( ctrlSuiteNo,		"SUITE_NO"		);
				setValue( ctrlCity,			"CITY"			);
				setValue( ctrlState,		"STATE"			);
				setValue( ctrlZip,			"ZIP"			);
			}
			else if( typeof( clearValues ) == "undefined" ) {
				clearValue( ctrlHouseNo		);
				clearValue( ctrlStreetName	);
				clearValue( ctrlSuiteNo		);
				clearValue( ctrlCity		);
				clearValue( ctrlState		);
				clearValue( ctrlZip			);
			}
			
		}
		
		function clearValue( obj ) {
			if( typeof( obj ) != "undefined" ) {
				obj.value = "";
			}
		}
		

		function setValue( obj, name ) {
			var obj2 = getElementById( name );
			if( typeof( obj ) != "undefined" && typeof( obj2 ) != "undefined" ) {
				var width = obj.offsetWidth;
				obj.value = obj2.value;
				obj.style.width = width;
			}
		}
		
		
		function setControl( control, disable, value ) {
			if( typeof( control ) != "undefined" ) {
				control.disabled = disable;
				if( disable ) {
					control.value = typeof( value ) == "undefined" ? "" : value;
					if( control.checked ) {
						control.checked = false;
					}
				}
			}
		}	
		
		function allowKeys( obj, keys ) {
			var bAllowKey = false;
			for( var i = 0; i < keys.length; i++ ) {
				if( keys.charAt( i ) == String.fromCharCode( window.event.keyCode ) ) {
					bAllowKey = true;
					break;
				}
			}
			if( !bAllowKey ) {
				window.event.cancelBubble = true;
				window.event.keyCode = 0;
			}
		}
		
		
		function validateInput( obj, keys ) {
			if( typeof( window.clipboardData ) != "undefined" ) {
				var sData = window.clipboardData.getData( "Text" )
				var sTemp = "";
				if( typeof( sData ) != "undefined" ) {
					for( var i = sData.length; --i >= 0; ) {
						for( var j = keys.length; --j >= 0; ) {
							if( sData.charAt( i ) == keys.charAt( j ) ) {
								sTemp += sData.charAt( i );
							}
						}
					}
				}
			
				window.clipboardData.setData( "Text", sTemp );
			}
		}
		
			
		function Capitalize()
		{
			var el = window.event.srcElement;
			if( el == null ) return;
			
			if( el.getAttribute( "CAP" ) == null )
			{
				el.setAttribute( "CAP", "1" );
				if( el.value == "" ) {
					var nUCharCode = String.fromCharCode( window.event.keyCode ).toUpperCase().charCodeAt(0);
					window.event.keyCode = nUCharCode;
				}
			}
		}				function Submitnow()
		{			if( validateData() ) {
				document.getElementById( "SubmitButton" ).disabled = true;
				var pForm = document.getElementById( "frmMain" );
				pForm.submit();
			}else{return false;}
		}
								function SubmitQuick()
		{			if( validateData() ) {
				document.getElementById( "SubmitButton" ).disabled = true;
				var pForm = document.getElementById( "frmQuick" );
				pForm.submit();
			}else{return false;}
		}


// End -->
