//  ------------------------------------------------------------------------ //
//              HCTCommerce - HardCoreTec E-Commerce System                  //
//                     Copyright (c) 2004 HardCoreTec                        //
//                 Developer and Creator Nicolas P�lmann                    //
//                     <http://www.hardcoretec.com/>                         //
//  ------------------------------------------------------------------------ //
//  This file is a component of the HardCoreTec E-Commerce System.           //
//                                                                           //
//  You may not change or alter any portion of this document and it's        //
//  system without having the creators acknowledgement and agreement.        //
//                                                                           //
//  ------------------------------------------------------------------------ //

function unCheck(txtForm, txtSelectAll, objSelect) {

  for (var i = 0; i < document.forms[txtForm].elements.length; i++) {

    e = document.forms[txtForm].elements[i];

    if ((e.name != txtSelectAll) && (e.type == 'checkbox') && (e.name.search(objSelect) != -1)) {

      e.checked = document.forms[txtForm].elements[txtSelectAll].checked;

    }

  }

}

function slideUpDown(txtBox, txtBoxBackground){

  if(document.getElementById){

    var obj = document.getElementById(txtBoxBackground);

    if (obj.className == "tdBoxBackgroundRight") {
      obj.className = "tdBoxBackgroundRightOpen";
    } else {
      obj.className = "tdBoxBackgroundRight";
    }

    obj = document.getElementById(txtBox);

    if (obj.style.visibility == 'hidden') {
      obj.style.visibility = "visible";
      obj.style.display = "inline";
    } else {
      obj.style.visibility = "hidden";
      obj.style.display = "none";
    }

  }

}
