function SendForm()
{
  document.cartform.submit();
}		

function validateCartForm() 
{
  // check for firstname
  if ((document.cartform.shippingRegionID.value == '') || (document.cartform.shippingRegionID.value == '0.00'))
  {
    alert('Please tell us the shipping region.');
    return false;
  }
  // To get to this stage the validation tests must've been passed. So disable the submit button and submit the form.
  //document.cartform.submitbtn.value = 'Please Wait...'; 
  //document.cartform.submitbtn.disabled = true;
  return;
}

function validateCheckoutForm() 
{
  // check for firstname
  if ((document.checkoutform.shipping.value == '') || (document.checkoutform.shipping.value == '0.00'))
  {
    alert('Please tell us the shipping region.');
    return false;
  }
  // To get to this stage the validation tests must've been passed. So disable the submit button and submit the form.
  //document.checkoutform.submitbtn.value = 'Please Wait...'; 
  //document.checkoutform.submitbtn.disabled = true;
  return;
}

function flDropDownHack() {
    var IE = document.all;              
    navRoot = document.getElementById("menu");
    for (i=0; i<navRoot.childNodes.length; i++) {
        node = navRoot.childNodes[i];
        if (node.nodeName=="LI") {
            node.onmouseover=function() {
                if (IE) {
                    this.className+=" over";
                }
            }
            node.onmouseout=function() {
                if (IE) {
                    this.className=this.className.replace(" over", "");
                }
            }
        }
    }               
    var els = document.getElementsByClassName("aTopNavNestedUL", "tabs");               
    for (e = 0; e < els.length; e ++ ) {
        navRoot = els[e];
        for (i=0; i<navRoot.childNodes.length; i++) {
            node = navRoot.childNodes[i];
            if (node.nodeName=="LI") {
                node.onmouseover=function() {
                    if (IE) {
                        this.className+=" over";
                    }
                }
                node.onmouseout=function() {
                    if (IE) {
                        this.className=this.className.replace(" over", "");
                    }
                }
            }
        }
    }
}

document.body.onload = flDropDownHack;
