function submitSource(source){    
    document.forms[0].submitSource.value = source;  
    document.forms[0].submit();
}

function showCSC(cc) {
  var disp = "none";
  if (cc == "VISA" || cc == "MASTERCARD" || cc == "AMEX") {
    disp="block";
  } else {
    document.forms[0].cardSecurityCode.value="";
  }
  
  if (document.getElementById) {
    document.getElementById("cscBlock1").style.display = disp;
    document.getElementById("cscBlock2").style.display = disp;
  } else if (document.all) {
    document.all["cscBlock1"].style.display = disp;
    document.all["cscBlock2"].style.display = disp; 
  }
}

function gotoURL(URL) {
        if ( URL!="" )
            window.location.href = URL;
}

function parseFromMenu(menu) {
 if (menu == null)
    return "";
  var str = menu.options[menu.selectedIndex].text;
  if (str) {
    index = str.indexOf("- #");
    if (index > 0)
      return str.substring(index + 3);
  }
  return "";
}
