function hideandseek(menuid) {
 
 var menuObj = document.getElementById(menuid) ;
 var getMenuStatus = menuObj.style.display;
 
 menuObj.style.display = (getMenuStatus=="none") ? "block" : "none";
}

function launchCenter(url, name, height, width, extra) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
    str += "," + extra;
  }
  return window.open(url, name, str);
}

function showPayment() {
 var getMenuStatus = document.getElementById("payment").options[document.getElementById("payment").selectedIndex].value;
 var thiscardDetails = document.getElementById("cardDetails");
 var thisphone = document.getElementById("teldiv");
 var thisfax = document.getElementById("faxdiv");
 
 if (getMenuStatus == "online") {
    thiscardDetails.style.display = "block";
    thisphone.style.display = "none";
    thisfax.style.display = "none";
    
 
 } 
 if (getMenuStatus == "tel") {
    thiscardDetails.style.display = "none";
    thisphone.style.display = "block";
    thisfax.style.display = "none";
 
 }
 if (getMenuStatus == "fax") {
    thiscardDetails.style.display = "none";
    thisphone.style.display = "none";
    thisfax.style.display = "block";
    
 }
 
 

}

function loadWindow(aname) {

    var menuObj = document.getElementById(aname);

    var getMenuID = menuObj.options[menuObj.selectedIndex].value;
    
    var url = "../showitem_norefresh.php?ID=" + getMenuID;
    
  return launchCenter(url, 'center', 550, 700, 'scrollbars=yes');

}


function loadWindowWithoutURL(aname) {

  return launchCenter('', 'center', 550, 700, 'scrollbars=yes');

}
