<!--
//	Various validation routines used for the SEO cart
//      -------------------------------------------------

// Warn if a MANDATORY option was not selected:
//
// Because we do not know the names of the forms containing
// the various option types used by a given product, we cannot
// hard code them in the script.  The way we identify a mandatory
// option from the pull down menu is by setting a default 
// value of 999999. Then this function can iterate over all
// the elements in this form, identify which ones are of type "select"
// and if any of those have a selected value of 999999, we
// pop a warning window and return false
//

<!-- Begin
function checkMandatoryOpt(thisForm) {
  var pass=true;
  if (document.images) {
    for (i=0;i<thisForm.length;i++) {
      var tempobj=thisForm.elements[i];
        if (tempobj.type.toString().charAt(0)=="s") {
          if (tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==0) {
            if (tempobj.options[0].value==999999) {
              pass=false;
              break;
            } else {
              pass=true;
	    }
	  }
	}	 
    }
  }

  if (!pass) {
    // shortFieldName=tempobj.name.toUpperCase();
    // alert("You must first select an option: "+shortFieldName);
    alert("Please pick an option");
    return false;
  }
  else
  return true;
}


function testMe(thisForm) {
    alert("Hello Scoob!");
    return false;
}

//  End -->
