
|
|
|
LEFTOVER 2008 RM-Z450 ONLY $4,599!!!!! |
ALL NEW LEFTOVER STOCK ON SALE NOW AND READY TO GO |
function ValidatePreOwnedSelect(theForm)
{
var ch;
var i;
if (theForm.PriceFrom.value.length == 0)
{
alert(" Price Min must be numeric.");
theForm.PriceFrom.focus();
return(false)
}
if (theForm.PriceThru.value.length == 0)
{
alert("Price Max must be numeric.");
theForm.PriceThru.focus();
return(false)
}
if (theForm.ModelYearFrom.value.length == 0)
{
alert("Model Year Min must be numeric.");
theForm.ModelYearFrom.focus();
return(false)
}
if (theForm.ModelYearThru.value.length == 0)
{
alert("Model Year Max must be numeric.");
theForm.ModelYearThru.focus();
return(false)
}
for (i = 0; i < theForm.PriceFrom.value.length; i++)
{
ch = theForm.PriceFrom.value.charAt(i);
if (IsNumeric(ch) == false)
{
alert(" Price Min must be numeric.");
theForm.PriceFrom.focus();
return(false)
}
}
for (i = 0; i < theForm.PriceThru.value.length; i++)
{
ch = theForm.PriceThru.value.charAt(i);
if (IsNumeric(ch) == false)
{
alert("Price Max must be numeric.");
theForm.PriceThru.focus();
return(false)
}
}
var j, doBoats, doRVs;
doBoats = false;
doRVs = false;
for (j = 0; j < theForm.category.options.length; j++) {
if (theForm.category.options[j].value == 21 || theForm.category.options[j].value == 62) {
doBoats = true;
}
if (theForm.category.options[j].value == 61 ||
theForm.category.options[j].value == 60 ||
theForm.category.options[j].value == 74 ||
theForm.category.options[j].value == 75 ||
theForm.category.options[j].value == 76 ||
theForm.category.options[j].value == 77 ||
theForm.category.options[j].value == 78 ||
theForm.category.options[j].value == 79 ||
theForm.category.options[j].value == 80 ||
theForm.category.options[j].value == 81 ||
theForm.category.options[j].value == 82 ||
theForm.category.options[j].value == 48 ||
theForm.category.options[j].value == 83 ||
theForm.category.options[j].value == 84 ||
theForm.category.options[j].value == 85 ||
theForm.category.options[j].value == 86 ||
theForm.category.options[j].value == 87) {
doRVs = true;
}
}
// category condition
if (!(theForm.category.options[theForm.category.selectedIndex].value == 0 ||
theForm.category.options[theForm.category.selectedIndex].value == 21 || //boats
theForm.category.options[theForm.category.selectedIndex].value == 62 || //sailboats
theForm.category.options[theForm.category.selectedIndex].value == 61 || //RVs
theForm.category.options[theForm.category.selectedIndex].value == 60 ||
theForm.category.options[theForm.category.selectedIndex].value == 74 ||
theForm.category.options[theForm.category.selectedIndex].value == 75 ||
theForm.category.options[theForm.category.selectedIndex].value == 76 ||
theForm.category.options[theForm.category.selectedIndex].value == 77 ||
theForm.category.options[theForm.category.selectedIndex].value == 78 ||
theForm.category.options[theForm.category.selectedIndex].value == 79 ||
theForm.category.options[theForm.category.selectedIndex].value == 80 ||
theForm.category.options[theForm.category.selectedIndex].value == 81 ||
theForm.category.options[theForm.category.selectedIndex].value == 82 ||
theForm.category.options[theForm.category.selectedIndex].value == 48 ||
theForm.category.options[theForm.category.selectedIndex].value == 83 ||
theForm.category.options[theForm.category.selectedIndex].value == 84 ||
theForm.category.options[theForm.category.selectedIndex].value == 85 ||
theForm.category.options[theForm.category.selectedIndex].value == 86 ||
theForm.category.options[theForm.category.selectedIndex].value == 87) &&
(theForm.lengthMin.value != ""))
{
if (doBoats == true && doRVs == false) {
alert("Length search field is for Boats only.");
return(false);
} else if (doBoats == false && doRVs == true) {
alert("Length search field is for RVs only.");
return(false);
} else if (doBoats == true && doRVs == true) {
alert("Length search field is for Boats or RVs only.");
return(false);
}
else { //adding default case
return(false);
}
}
//test if length fields are defined
if (typeof theForm.lengthMin != "undefined")
{
if (parseInt(theForm.lengthMin.value) > parseInt(theForm.lengthMax.value))
{
alert("Length Min must be less than Length Max.");
theForm.lengthMin.focus();
return(false)
}
for (i = 0; i < theForm.lengthMin.value.length; i++)
{
ch = theForm.lengthMin.value.charAt(i);
if (IsNumeric(ch) == false)
{
alert(" Length Min must be numeric.");
theForm.lengthMin.focus();
return(false)
}
}
for (i = 0; i < theForm.lengthMax.value.length; i++)
{
ch = theForm.lengthMax.value.charAt(i);
if (IsNumeric(ch) == false)
{
alert("Length Max must be numeric.");
theForm.lengthMax.focus();
return(false)
}
}
} // end test for optional length fields
for (i = 0; i < theForm.ModelYearFrom.value.length; i++)
{
ch = theForm.ModelYearFrom.value.charAt(i);
if (IsNumeric(ch) == false)
{
alert("Model Year Min must be numeric.");
theForm.ModelYearFrom.focus();
return(false)
}
}
for (i = 0; i < theForm.ModelYearThru.value.length; i++)
{
ch = theForm.ModelYearThru.value.charAt(i);
if (IsNumeric(ch) == false)
{
alert("Model Year Max must be numeric.");
theForm.ModelYearThru.focus();
return(false)
}
}
}
function IsNumeric(ch)
{
var list = "0123456789";
var pos = list.indexOf(ch);
if (pos>=0)
{
return(true);
}
else
{
return(false);
}
}
|
| Page: 1 2 |
<<PREVIOUS - NEXT >> |
Results Found 30 - Page 2 of 2 |
|
*Price, if shown, does not include government fees, taxes, dealer freight/preparation, dealer document preparation charges or any finance charges (if applicable). Final actual sales price will vary depending on options or accessories selected.
NOTE: Models with a price of "Request a Quote" are always included in a $0 search, regardless of actual value.
|
|
| Page: 1 2 |
<<PREVIOUS - NEXT >> |
Results Found 30 - Page 2 of 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|