<!--

var ie = (document.all)? true:false;
var opera = (document.all && !document.styleSheets)? true:false;
var ns4 = (document.layers)? true:false;
var ns6 = (document.getElementById && !document.all)? true:false;
var dom = (document.getElementById)? true:false;

function webautor_popup(theURL,winName,features, myWidth, myHeight, isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function webautor_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=webautor_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function webautor_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=webautor_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}	

function webautor_swapImgRestore() { //v3.0
  var i,x,a=document.webautor_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function webautor_swapImage() { //v3.0
  var i,j=0,x,a=webautor_swapImage.arguments; document.webautor_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=webautor_findObj(a[i]))!=null){document.webautor_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
		
function FensterOeffnen (Adresse,parameter) {
  Fenster1 = window.open(Adresse, "Zweitfenster", parameter);
  Fenster1.focus();
}		

		
		
function chgBg(obj,color){
	if (ie || dom)
  	obj.style.backgroundColor = color;
	else if (ns4)
  	obj.bgColor = color;
}

function goTo(url,target){
	if (url!="") {
		if (target!="" && target!="_self")
			window.open(url);
		else
			parent.location.assign(url);
		}
}
	

function webautor_flash(src, movie, width, height, version, quality, menu, bgcolor, flashvars, loop) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='" +width+ "' height='" +height+ "' id='" +movie+ "'>");
	document.write("<param name='movie' value='" +src+ "' />");
	document.write("<param name=\"FlashVars\" value=\"" +flashvars+ "\">");
	document.write("<param name='quality' value='" +quality+ "' />");
	document.write("<param name='menu' value='" +menu+ "' />");
	document.write("<param name='bgcolor' value='" +bgcolor+ "' />");
	document.write("<param name='loop' value='" +loop+ "' />");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='PLAY' value='true' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='" +src+ "' swLiveConnect='true' wmode='transparent' menu='" +menu+ "' FlashVars='" +flashvars+ "' quality='" +quality+ "' bgcolor='" +bgcolor+ "' width='" +width+ "' height='" +height+ "' loop='" +loop+ "' name='" +movie+ "' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function webautor_mediaplayer(src, movie, width, height, version, quality, menu, bgcolor, flashvars, loop) {
	document.write("<embed src='" + src + "' width='" + width + "' height='" + height +"' allowscriptaccess='always' allowfullscreen='true' flashvars='height=" + height + "&width=" + width + "&file=" + movie + flashvars + "&bgcolor=" + bgcolor + "'/>");
}
	
	
	
function webautor_sLayer(name)	{
	// einheitliches Objekt von Layer erstellen
	if(ns4)	return document.layers[name]
	if(dom)	return document.getElementById(name)
	if(ie)	return document.all[name]
}

function webautor_setInnerHTML(name,text)	{
	if(ns4)	{
		webautor_sLayer(name).document.open()
		webautor_sLayer(name).document.write(text)
		webautor_sLayer(name).document.close()
	}
	else {
		webautor_sLayer(name).innerHTML=text
	}
}
	
function webautor_getPrice(nrArt,lblArt,waehrung) {
	frm = webautor_findObj('formular'+nrArt);
	idValue = 'preisvar'+frm.zahlvariante1.options[frm.zahlvariante1.selectedIndex].value;
	webautor_setInnerHTML("preis"+nrArt, frm[idValue].value+"&nbsp;"+waehrung+"&nbsp;");
	idValue = 'artikelnummervar'+frm.zahlvariante1.options[frm.zahlvariante1.selectedIndex].value;
	webautor_setInnerHTML("artikelnummer"+nrArt, lblArt+"&nbsp;"+frm[idValue].value);
}

function webautor_fCheck(section,checkbox) {
	if (checkbox.checked) { 
		webautor_findObj(section).style.display=''; 
	} else {
		webautor_findObj(section).style.display='none';
	}
}
//-->