yn=0;
ns = (document.layers) ? true:false
dom = (document.getElementById) ? true:false
ie = (document.all) ? true:false

var onwerkstoff = new Image(); onwerkstoff.src =   "/images/werkstoffe_on.gif";
var offwerkstoff = new Image(); offwerkstoff.src = "/images/werkstoffe_off.gif";

function act(imgName){
  document[imgName].src = eval('on'+imgName+'.src');
}
function inact(imgName){ 
  document[imgName].src = eval('off'+imgName+'.src');
}

function switcher(){
 if(yn==0){show('material');yn=1;}
 else {hide('material');yn=0;}
}
function show(L) {	if (ns) document[L].visibility = "show";
 else if (dom) document.getElementById(L).style.visibility = "visible";
 else if (ie) document.all[L].style.visibility = "visible";
}
function hide(NL){	if (ns) document[NL].visibility = "hide";
 else if (dom) document.getElementById(NL).style.visibility = "hidden";
 else if (ie) document.all[NL].style.visibility = "hidden";
}
	
function mOver(imgName) {
 document.images[imgName].src="/images/farbnav_pfeile_rechts.gif";
}

function mOut(imgName) {
 document.images[imgName].src="/images/farbnav_pfeile_no.gif";
}

function openKlassifizierung() {
 window.open('/schueco/new_cda/neustrukturierung/spec_templates/Klassifizierung/schueco_ns_cda_klassifizierung_popup', 'Klassifizierung', 'width=260,height=360,left=440,top=200,menubar=no,location=no,status=no,toolbar=no,resizable=no,scrollbars=no');
 }	

function openWindow(url, name, width, height) {
	
 window.open(url, name, 'width=' + width + ',height=' + height + ',menubar=no,location=no,status=yes,toolbar=no,resizable=yes,scrollbars=yes');
}