Hi guys,
I'm getting an Object expected error on the line I've marked in bold in the following code:
function checkiftoobig(){
var hasbasedata;
var hasothercriteria;
var valuetoreturn;
If ((document.Enquiryform.matrlcod.selectedIndex > 0) || (document.Enquiryform.surfcod.selectedIndex > 0) || (document.Enquiryform.finiscod.selectedIndex > 0) ||(document.Enquiryform.locncod.selectedIndex > 0) ||(document.Enquiryform.elemtype.selectedIndex > 0) )
hasbasedata = "yes";
... Other stuff in here.....
If (hasbasedata == "yes" && hasothercriteria == "no"
alert("You have asked for too much"
valuetoreturn = "notok";
checkiftoobig = valuetoreturn;
}
I'm getting an Object expected error on the line I've marked in bold in the following code:
function checkiftoobig(){
var hasbasedata;
var hasothercriteria;
var valuetoreturn;
If ((document.Enquiryform.matrlcod.selectedIndex > 0) || (document.Enquiryform.surfcod.selectedIndex > 0) || (document.Enquiryform.finiscod.selectedIndex > 0) ||(document.Enquiryform.locncod.selectedIndex > 0) ||(document.Enquiryform.elemtype.selectedIndex > 0) )
hasbasedata = "yes";
... Other stuff in here.....
If (hasbasedata == "yes" && hasothercriteria == "no"
alert("You have asked for too much"
valuetoreturn = "notok";
checkiftoobig = valuetoreturn;
}