Excerpt from product page





SubmitTheOffer.com - Motivated, Quick Sale, Short Sale, Foreclosure, TLC, Real Estate for Sale




// Copyright 2002-2006 AlphaPlex, Inc. All Rights Reserved.
// http://www.alphaplex.net
//
/**
* Usage: In the HTML page, write in a javascript function "validate(theForm)"
* with the last statement as:
* return validateForm(theForm);
* Within this function, add statements for each form field that you wish
* to require and/or validate. Syntax and notes for these statements are
* given below. In the HTML form tag, add the property:
* onSubmit="return validate(this)"
*
*
* Requiring For all form fields of type other than "radio" and "checkbox",
* Fields: use the statement:
* theForm.fieldname.required = true;
* to require the field.
*
* For RADIO and CHECKBOX fields, use the statement:
* theForm.fieldname[0].required = true;
* to require the field.
*
* NOTE: For SELECT fields, requiring this field has the effect that
* the first option is not valid!!
*
* Validating To validate a field, use a statement such as:
* Fields: theForm.fieldname.validator = "date";
* Where the validator can be any of the following:
* "dateonly"
* "date"/"datetime"
* "time"
* "currency"/"money"
* "zip"/"zipcode"/"zip_code"/"zip-code"
* "email"/"e-mail"/"e_mail"
* "phone"/"phonenumber" ********* ALLOWS FREE-FORM EXTENSIONS
* "image"/"image-file"/"imagefile"/"img"
* "jpeg"/"image-jpeg"/"image/jpeg"
* "int"/"integer"/"number"/"num"
* "float"/"real"
* "mpg"/"mpeg"
* "video"/"movie"
* "pdf"
*
* Alert A default message is shown when a required field is empty upon form
* Messages: submission. However, you may override this message by including
* a statement of the form:
* theForm.fieldname.alertMessage = "Some alert text here";
* Note that RADIO and CHECKBOX fields must use the syntax:
* theForm.fieldname[0].alertMessage = "Some alert text here";
*
* NOTE: This message is for the requiring of fields ONLY, not for
* field validation using the "validator" property!! For this, please
* use the "validatorMessage" property instead. It works the same way,
* except it will pre-empt the validator-specific message.
**/

function isBlank(s) {
for (var i=0; i 12) { // check month range
alert("Month must be between 1 and 12 in the \"" + theField.name + "\" field.");
theField.focus();
return false;
}
if (day < 1 || day > 31) { // check overall days range
alert("Error: Day must be between 1 and 31 in the \"" + theField.name + "\" field.");
theField.focus();
return false;
}
if ((month==4 || month==6 || month==9 || month==11) && day==31) { // check for months with only 30 days
alert("Error: "+monthArray[month]+" doesn't have 31 days.");
theField.focus();
return false;
}
if (month == 2) { // check for february 29th
var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
if (day>29 || (day==29 && !isleap)) {
alert("Error: February " + year + " doesn't have " + day + " days.");
theField.focus();
return false;
}
}

var timeStr = dateStr.replace(datePat, "");
var timeMatchArray = timeStr.match(timePat);
if (timeMatchArray == null && timeStr != "") {
if (theField.validatorMessage != null)
alert(theField.validatorMessage);
else
alert("Time within date field is not in a valid format in the \"" + theField.name + "\" field.");
theField.focus();
return false;
}

return true; // date is valid
}

function isValidDate(theField) {
var dateStr = null;
dateStr = theField.value;

var monthArray = [null, "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var datePat = /^(\d{1,2})([\/])(\d{1,2})[\/](\d{4}|\d{2})\s*$/;

// To require a 4 digit year entry, use this line instead:
// var datePat = /^(\d{1,2})([\/])(\d{1,2})[\/](\d{4})\s*/;

//First check to see if we have an empty string to avoid a Javascript bug after
//the matching is performed.
if (dateStr == "") {
return true;
}

var matchArray = dateStr.match(datePat); // is the format ok?
if (matchArray == null && dateStr != "") {
if (theField.validatorMessage != null)
alert(theField.validatorMessage);
else

alert("Date is not in a valid format in the \"" + theField.name + "\" field. Format: MM/DD/YYYY.");

theField.focus();
return false;
}

// parse date into variables

month = matchArray[1];
day = matchArray[3];
year = matchArray[4];


if (month < 1 || month > 12) { // check month range
alert("Month must be between 1 and 12 in the \"" + theField.name + "\" field.");
theField.focus();
return false;
}
if (day < 1 || day > 31) { // check overall days range
alert("Error: Day must be between 1 and 31 in the \"" + theField.name + "\" field.");
theField.focus();
return false;
}
if ((month==4 || month==6 || month==9 || month==11) && day==31) { // check for months with only 30 days
alert("Error: "+monthArray[month]+" doesn't have 31 days.");
theField.focus();
return false;
}
if (month == 2) { // check for february 29th
var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
if (day>29 || (day==29 && !isleap)) {
alert("Error: February " + year + " doesn't have " + day + " days.");
theField.focus();
return false;
}
}

return true; // date is valid
}

function isValidEmail(theField) {
var emailStr = null;
emailStr = theField.value;

var emailPat = /^[^\/\\\(\)\{\}":,;\[\]@\. ]+(\.[^\/\\\(\)\{\}":,;\[\]@ ]+)?\@[^\/\\\(\)\{\}":,;\[\]@\. ]+\.[^\/\\\(\)\{\}":,;\[\]@\. ]+(\.[^\/\\\(\)\{\}":,;\[\]@ ]+)?$/;

var matchArray = emailStr.match(emailPat);
if (matchArray == null && emailStr != "") {
if (theField.validatorMessage != null)
alert(theField.validatorMessage);
else
alert("Email address is not in a valid format in the \"" + theField.name + "\" field.");
theField.focus();
return false;
}
return true;
}

function CleanInput(inputStr) {
if (inputStr!="" || inputStr!= null ){
var tempStr = inputStr.replace(/& /g, "&amp; ");
// tempStr = tempStr.replace(/(\r\n|\r|\n)/g, "");
var utf8str="";
for (var i=0; i < tempStr.length; i++) {
if ((tempStr.charCodeAt(i) > 31) && (tempStr.charCodeAt(i) < 127) || (tempStr.charCodeAt(i)== 10) || (tempStr.charCodeAt(i)== 13)) {
utf8str += tempStr.substring(i,i+1);
}
}
return utf8str;
}
}

function CleanQuotes(inputStr) {
if (inputStr!="" || inputStr!= null ){
var tempStr = inputStr.replace(/"/g, "&quot;");
return tempStr;
}
}

function validateForm(theForm) {
// Note that elements[] array of the FORM object, EVERY element (including multiple radio buttons of the same group) is treated individually!
for (var i=0; i < theForm.length; i++) { // loop through form elements
var e = theForm.elements[i]; // current element
//if ((e.type == "Submit") || (e.type == "Reset")) continue;

if (e.type == "text" || e.type == "textarea") {
e.value=CleanInput(e.value);
}

if (e.type == "text") {
e.value=CleanQuotes(e.value);
}

if (e.required) { // check to see if a required field is empty
if (e.type == "radio" || e.type == "checkbox") {
var radioSelected = false;
for (var j = i; j < theForm.length; j++) {
if (theForm.elements[j].name == e.name && theForm.elements[j].checked) {
radioSelected = true;
break;
}
}// end for
if (!radioSelected) {
if (e.alertMessage == null)
alert("Please select one of the \"" + e.name + "\" options.");
else
alert(e.alertMessage);
e.focus();
return (false);
}// end if
}// end if
else if (e.type == "select-one") {
if (e.selectedIndex == 0) {
if (e.alertMessage == null)
alert("The first \"" + e.name + "\" option is not a valid selection. Please choose one of the other options.");
else
alert(e.alertMessage);
e.focus();
return (false);
}
}
else if (e.type == "select-multiple") {
if (e.selectedIndex == -1) {
if (e.alertMessage == null)
alert("Please select at least one value for the \"" + e.name + "\" field.");
else
alert(e.alertMessage);
e.focus();
return (false);
}
}
else {
if ((e.value == null) || (e.value == "") || isBlank(e.value)) {
if (e.alertMessage == null)
alert("Please enter a value in the \"" + e.name + "\" field.");
else
alert(e.alertMessage);
e.focus();
return false;
}
}
}
if (e.validator) {
var v = e.validator;
} else {
var v = "";
}
//alert (e.required);
v = v.toLowerCase();
var valid = true;
switch (v) {
case 'dateonly':
valid = isValidDate(e);
break;
case 'date':
case 'datetime':
valid = isValidDateTime(e);
break;
case 'time':
valid = isValidTime(e);
break;
case 'currency':
case 'money':
valid = isValidCurrency(e);
break;
case 'zip':
case 'zipcode':
case 'zip_code':
case 'zip-code':
valid = isValidZip(e);
break;
case 'email':
case 'e-mail':
case 'e_mail':
valid = isValidEmail(e);
break;
case 'phone':
case 'phone_no':
case 'phone_number':
case 'phonenumber':
valid = isValidPhone(e);
break;
case 'image':
case 'imagefile':
case 'image_file':
case 'img':
valid = isValidImage(e);
break;
case 'video':
case 'movie':
valid = isValidVideo(e);
break;
case 'mpg':
case 'mpeg':
valid = isValidMPEGVideo(e);
break;
case 'pdf':
valid = isValidPDF(e);
break;
case 'jpeg':
case 'image-jpeg':
case 'jpeg-image':
case 'image/jpeg':
valid = isValidJPEGImage(e);
break;
case 'integer':
case 'int':
case 'number':
case 'num':
valid = isValidInteger(e);
break;
case 'unsignedint':
valid = isValidUnsignedInteger(e);
break;
case 'float':
case 'real':
valid = isValidFloat(e);
break;
case 'unsignedfloat':
valid = isValidUnsignedFloat(e);
break;
}
if (!valid) return false;

if ((e.maxLength != null) && (e.maxLength != "")) {
if (! checkLength(e))
return false;
}

if ((e.minLength != null) && (e.minLength != "")) {
if (! checkMinLength(e))
return false;
}
}
return true; // all form fields are valid
}



function validate(t) {
t.ZipCode.maxLength = 20;

if (t.City.value.length==0 && t.ZipCode.value.length==0 && t.State.value==-1){
alert("You must specify at least one of city, state, zip code");
t.City.focus();
return false;
}

return validateForm(t);
}
















SELLERS: Special Promotion &amp; Help Options If You Owe More
than It's Worth or In Pre-foreclosure. CLICK
HERE












Home
Search Ads
Find an Agent
Buyers
Sellers

Register
Login

Help/FAQ
Pricing
Sellers' Rescue








Welcome: Guest - Please Register or Login &nbsp;


Monday - October 15, 2007





Place an Ad!

Search Ads
Find an Agent






&nbsp;
RSS Feeds Available in each state, or for all listings CLICK HERE.





Post it Once and Your ad is Also Seen on the Top Real Estate Sites!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; seen on:Motivated SELLERS FREE AD:1. Register, takes Only Minutes. 2. Create your ad.3. Activate your ad with two clicks!Motivated BUYERS View Listings FREE:1. Register, takes Only Minutes.2. Search FREE across the U.S.3. Sign up for instant email alerts.&nbsp;...and more!To Search, Click on any State:








































































Outside US






Search by City or Zip Code

City



Zip Code



Or within

10 miles
20 miles
50 miles
100 miles
150 miles

of the entered zip code.

Note: if you specify a zip code, the search will use the zip code and ignore city and state.
If you check the checkbox and select the number of miles, properties within that number of miles of the entered zip code will be selected.




&nbsp;




Featured
Pre-ForeclosureShort Sale, Submit All offers now Location: FloridaGrand Island , FL$220,000.00

Wholesale Price3/1 priced to sell at 45k. Over 60k ++++in equity!!!!!Location: MichiganDetroit, MI$45,000.00

Bank Will take Short Sale!Huge, One-Of-A-Kind Home with EVERYTHING - Land, Pool, Outbuildings, 2 Master Suites - MUST SEE!!Location: North CarolinaWesley Chapel, NC$425,000.00

Pre-ForeclosureBank will take Short Sale, fixer upper! This is a DEAL.Location: FloridaMascotte, FL$190,000.00

Must Sell Now3 BR/2 BA for Sale in AUBURN ALABAMALocation: AlabamaAuburn, AL$185,000.00
New
In Trouble, Need Best Offer NOW!Beautiful Upscale Home / completely RemodeledLocation: WashingtonKent, WA$345,000.00

Must Sell$154000 For Sale By OwnerLocation: WisconsinRipon, WI$154,000.00

Investor SpecialLong term renters.Nicely updated!Location: OregonStayton, ON$245,000.00

Very MotivatedOak Ridge Vista, Beautiful Home. MUST RELOCATE....Location: OregonStayton, OR$545,000.00

Very MotivatedBeautiful Center-Hall colonial homeLocation: New YorkValley Cottage, NY$789,999.00
NEW! Buyers/Investors:Simplified FORECLOSURE Searching








[
Register |
Login

]


[ Home |
Search Ads |
Find an Agent |
Buyers |
Sellers |
Links | Pricing | Banner Advertising | Affiliate Program ]
[ Privacy Policy | Terms of Use | Help | About Us | Contact Us ]


Copyright &copy; 2007 SubmitTheOffer.com. All Rights Reserved.






_uacct = "UA-1660842-1";
urchinTracker();



Sites you may be interested in