/** Show hide a DOM ELEMENT */
function showHide(elementID){
	the_block = document.getElementById(elementID);
	
	visible = the_block.style.visibility == 'visible';
	
	if(visible){
		the_block.style.visibility = 'hidden';	
	} else {
		the_block.style.visibility = 'visible';	
	}
	
	

}

/** REMOVED FROM EDITCUSTOMERINFOSUCCESS */
function showdiv(id) {
        document.getElementById(id).className = "active";
        if (document.getElementById) { // DOM3 = IE5, NS6                                                                                                                                                        
                document.getElementById(id).style.visibility = 'visible';
        } else {
                if (document.layers) { // Netscape 4                                                                                                                                                             
                        document.id.visibility = 'visible';
                } else { // IE 4                                                                                                                                                                                 
                        document.all.id.style.visibility = 'visible';
                }
        }
}

function hidediv(id) {
        if (document.getElementById) { // DOM3 = IE5, NS6                                                                                                                                                        
                document.getElementById(id).style.visibility = 'hidden';
        } else {
                if (document.layers) { // Netscape 4                                                                                                                                                             
                        document.id.visibility = 'hidden';
                } else { // IE 4                                                                                                                                                                                 
                        document.all.id.style.visibility = 'hidden';
                }
        }
}
// USED TO SET THE TABS ACTIVE
function changeClass(fieldName,classType) {
  var myField = document.getElementById(fieldName);
  myField.className = classType;
}