
var icc_service=null;
function selectPulldown(handle) {
  if (this.selectedIndex != 0) {
    document.forms["select_login"].elements["PIN"].value = '';
  }
  return;
}

function selectPIN(handle) {
  if (this.value != '') {
    document.forms["select_login"].elements["icc_system"].selectedIndex = 0;
  }
}
function selectGo(handle) {
  if (document.forms["select_login"].elements["icc_system"].selectedIndex != 0) {
    icc_service=window.open( document.forms["select_login"].elements["icc_system"].options[document.forms["select_login"].elements["icc_system"].selectedIndex].value ,"ICC_SERVICE")
  } else if (document.forms["select_login"].elements["PIN"].value != '') {
    document.forms["select_login"].action = "/en_US/oc/icc.net/Customers/CustomerPortal/Redirector/PINRedirector.jsp";
    document.forms["select_login"].submit();
  } else {
    alert("If you click this link, you must first either enter \r\na PIN or select an ICC Online Service to logon to.");
  }
  return;
}
function checkFormResult() {
  if (window.location.search != '') {
    if (window.location.search.indexOf("redirectormsg") > 0) {
      qs = window.location.search.split('&');
      for (var i=0; i < qs.length; i++) {
        if (qs[i].indexOf("redirectormsg") > 0) {
          nv = qs[i].split('=')
          alert (unescape(nv[1]));
          i = qs.length;
        }
      }
    }  
  }
}