[CODE]
function FormValidation() {
if (!check_exceptions()) {
alert(exception_msg);
return false;
}
var value = product_option_value(“men_size”);
var value2 = product_option_value(“colour_001”);
var val1 = value.toLowerCase().indexOf(“select”);
var val2 = value2.toLowerCase().indexOf(“select”);
if ((val1 > -1) && (val2 > -1)){
alert (“please choose a size and colour”);
return false;
}
elseif (val1 > -1){
alert (“please choose a size”);
return false;
}
elseif (val2 > -1){
alert (“please choose a colour”);
return false;
}
if(document.getElementById(‘product_avail’))
if(document.getElementById(‘product_avail’).value == 0) {
alert(“Out of stock”);
return false;
}
return true;
}
an online validator keeps giving me this as a report:
[QUOTE]
Error:
Implied global: alert, check_exceptions, elseif, exception_msg, product_option_value
Problem at line 14 character 19: Missing semicolon.
elseif (val1 > -1){
Problem at line 15 character 1: Expected to see a statement and instead saw a block.
alert (“please choose a size”);
Problem at line 15 character 1: Stopping, unable to continue. (48% scanned).
I’ve put a semicolon anywhere and everywhere.. ??
_mu