OldWestAustinHomes.com
Title
Old West Austin Home Values
Description
Excerpted from the website:
- /g, ">" ); sValue = sValue.replace( /\"/g, """ ); } else { sValue = ""; } } } catch( e ) { // Catch and display any errors that occur. Response.Write( "writeValue( "" + sName + "" ) ERROR " + e.number + ": " + e.description + " - sValue: " + sValue ); sValue = ""; } Response.Write( sValue ); } // Ensure the user of this form has entered the required fields. function validateData() { var txtFirstName = getElementById( "FIRST_NAME" ); var txtLastName = getElementById( "LAST_NAME" ); var txtEmail = getElementById( "EMAIL" ); var txtPhoneAreaCode = getElementById( "PHONE_AREA_CODE" ); var txtPhoneLocalCode = getElementById( "PHONE_LOCAL_CODE" ); var txtPhoneNumber = getElementById( "PHONE_NUMBER" ); var txtComments = getElementById( "COMMENTS" ); var sPhoneValue = txtPhoneAreaCode.value + txtPhoneLocalCode.value + txtPhoneNumber.value; var bRequirementsMet = true; if( txtFirstName.value.length == 0 && txtLastName.value.length == 0 ) { bRequirementsMet = false; } if( bRequirementsMet && ( txtEmail.value.length == 0 && sPhoneValue.length == 0 ) ) { bRequirementsMet = false; } if( !bRequirementsMet ) { window.alert( "\nPlease enter your FIRST NAME or LAST NAME\nand\nPHONE NUMBER or EMAIL ADDRESS.\n" ); } else { if( sPhoneValue.length > 0 && ( txtPhoneAreaCode.value.length != 3 || txtPhoneLocalCode.value.length != 3 || txtPhoneNumber.value.length != 4 ) ) { bRequirementsMet = false; window.alert( "\nYou have entered an invalid phone number. Please enter a correct phone number.\n" ); } if( bRequirementsMet && txtEmail.value.length > 0 ) { var nAtSymbolIndex = txtEmail.value.indexOf( "@" ); var sUserName = ""; var sServerName = ""; if( nAtSymbolIndex > 0 && nAtSymbolIndex 2900 ) { bRequirementsMet = false; window.alert( "\nYour comments are too long. Please try to limit the length of your comments to 2900 characters.\n" ); } } // The SELLER minimum price must be less than or equal to the maximum price. if( bRequirementsMet ) { var txtMinPrice = getElementById( "SELLER_MIN_PRICE" ); var txtMaxPrice = getElementById( "SELLER_MAX_PRICE" ); if( typeof( txtMinPrice ) != "undefined" && txtMinPrice != null && typeof( txtMaxPrice ) != "undefined" && txtMaxPrice != null ) { var sMinPrice = txtMinPrice.value; var sMaxPrice = txtMaxPrice.value; // Pre-parse the string to remove any non digit characters sMinPrice = sMinPrice.replace( /\$|\+|,/g, "" ); sMaxPrice = sMaxPrice.replace( /\$|\+|,/g, "" ); // Convert from a string to a number. var nMinPrice = new Number( sMinPrice ); var nMaxPrice = new Number( sMaxPrice ); if( sMinPrice.length != 0 && sMaxPrice.length != 0 ) { if( nMinPrice != Number.NaN && nMaxPrice != Number.NaN && nMinPrice > nMaxPrice ) { window.alert( "\nYou have specified an invalid minimum or maximum price. Please\nensure that the minimum price is not greater than the maximum price\nin the price range section.\n" ) bRequirementsMet = false; } } } } // The BUYER minimum price must be less than or equal to the maximum price. if( bRequirementsMet ) { var txtMinPrice = getElementById( "BUYER_MIN_PRICE" ); var txtMaxPrice = getElementById( "BUYER_MAX_PRICE" ); if( typeof( txtMinPrice ) != "undefined" && txtMinPrice != null && typeof( txtMaxPrice ) != "undefined" && txtMaxPrice != null ) { var sMinPrice = txtMinPrice.value; var sMaxPrice = txtMaxPrice.value; // Pre-parse the string to remove any non digit characters sMinPrice = sMinPrice.replace( /\$|\+|,/g, "" ); sMaxPrice = sMaxPrice.replace( /\$|\+|,/g, "" ); // Convert from a string to a number. var nMinPrice = new Number( sMinPrice ); var nMaxPrice = new Number( sMaxPrice ); if( nMinPrice != Number.NaN && nMaxPrice != Number.NaN && nMinPrice > nMaxPrice ) { window.alert( "\nYou have specified an invalid minimum or maximum price. Please\nensure that the minimum price is not greater than the maximum price\nin the price range section.\n" ) 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 = 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 Submit() { if( validateData() ) { getElementById( "SUBMIT" ).disabled = true; var pForm = getElementById( "frmMain" ); pForm.submit(); } } function enableBestTime() { var txtPhoneArea = getElementById( "PHONE_AREA_CODE" ); var txtPhoneLocal = getElementById( "PHONE_LOCAL_CODE" ); var txtPhoneNumber = getElementById( "PHONE_NUMBER" ); var obgBestTime = getElementById( "BEST_TIME" ); if( typeof( txtPhoneArea ) != "undefined" && txtPhoneArea != null && typeof( obgBestTime ) != "undefined" && obgBestTime != null ) { obgBestTime.disabled = !( txtPhoneArea.value.length != 0 || txtPhoneLocal.value.length != 0 || txtPhoneNumber.value.length != 0 ); } } //-->
Additional Information
Related Domains
External Links
