/* product serie overview */
function MakeSubmit(elm) {
  document.attributeSelectionForm.orderBy.value = elm;
  document.forms.attributeSelectionForm.submit();
}
function NewOpenWindows(urivalue) {
		     newWindow = window.open(urivalue, "Site", "width=700,height=550,scrollbars=yes,menubar=0,toolbar=0,location=0,status=0");
		     newWindow.focus();
		                            }

function showHideTable(id, checkbox) {
  element = document.getElementById(id);
  if (element != null) {
    if (checkbox.checked) {
      element.style.display = "table";
    }
    else {
      element.style.display = "none";
    }
  }
}

function newsBoxBg(div, state) {
  for (var i=0; i < div.childNodes.length; i++) {
    if(div.childNodes[i].className == "boxheader") {
	  if (state == 1) {	    
		div.childNodes[i].style.backgroundImage = "url(/pix/bg_newsbox_top.gif)";
	  } else {
	    div.childNodes[i].style.backgroundImage = "";
	  }
	}
	if(div.childNodes[i].className == "boxcontent") {
	  if (state == 1) {	    
		div.childNodes[i].style.backgroundImage = "url(/pix/bg_newsbox.gif)";		
	  } else {
	    div.childNodes[i].style.backgroundImage = "";
	  }
	}
  }
}
