<!--
if (document.layers)  {ns = 1; ie = 0; ns6=0;} 
if (document.all) {ns = 0; ie = 1; ns6=0;}
if (document.getElementById&&!document.all) {ns6=1; ns=0; ie=0;}

var winHeight; d=document; var whx;
if (typeof window.innerHeight!='undefined') {winHeight = window.innerHeight;} else {
if (d.documentElement && typeof d.documentElement.clientHeight!='undefined' && d.documentElement.clientHeight!==0) {winHeight = d.documentElement.clientHeight;}  else {
if (typeof d.documentElement.offsetHeight!='undefined' && d.documentElement.offsetHeight >0) {winHeight = d.documentElement.offsetHeight-5;} }}
if(winHeight && winHeight >0) {var wh=winHeight;} else {var wh=600;} 
whx=wh/100*99; whx = Math.round(whx*1)/1; 

function setART() {
var name="abox";
document.getElementById(name).style.height = whx+"px";
document.getElementById(name).style.overflow = "auto";
// setBox();
}

function setBox() {whm=whx-235-65-35; if(ie) {whm=whm+5;}
document.getElementById("menubox").style.height = whm+"px";}


var m = "news";
var ma = "newsa";
var x=1;

function shownews(xmn){
verbergen(eval('"' + m + x +'"'));
zeigen(eval('"' + m + xmn +'"'));

zeigen(eval('"' + ma + x +'"'));
verbergen(eval('"' + ma + xmn +'"'));
    x = xmn; 
}

function zeigen(name) {
document.getElementById(name).className="newsa";
document.getElementById(name).style.visibility = "visible"
}


function verbergen(name) {
document.getElementById(name).className="news";
document.getElementById(name).style.visibility = "hidden"
}



function printpop(id) {var url=agx+"+&print=1";
pwin=window.open(url,id,"height=550,width=625,top=10,left=10,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
pwin.focus();
}

function poplink(url,id) {
fwin=window.open(url,id,"height=550,width=625,top=10,left=10,toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
fwin.focus();
}

function popic(url,id) {
txt ='<html><head></head><body marginheight=0 topmargin=0 leftmargin=0 marginwidth=0>';
txt +='<img src="'+url+'"><br>';
msg=open("",id,"height=440,width=440,top=50,left=200,scrollbars=yes,resizable=yes");
msg.document.write(txt); msg.document.close(); msg.focus();
}


function rZ(num) {var name="rezdiv"; var rx=eval("rz"+num); var rez="rez"+rx;
var str=document.form[rez].value;
     if (ie) {document.all[name].innerHTML = str;} 
     if (ns6) {document.getElementById(name).innerHTML = "<font class=arial12>" +str;}
count = num;
}

function rL(num) {var rx=eval("rz"+num);
agt=agr+"+"+rx+lgz+upy;
count = num;
location.href=agt;
}

function rnext() {count++;
if (count>jxmax) {count=1;}
var rzx=count; rL(rzx); 
//get_rmenu(rzx);
}

function rback() {count--;
if (count==0) {count=jxmax;}
var rzx=count; rL(rzx); 
//get_rmenu(rzx);
}

function get_rmenu(rzx) {
var boxLength = document.form.rezept.length;
if (boxLength != 0) {
	for (b = 0; b < boxLength; b++) {
	thisval = document.form.rezept.options[b].value;
	if(thisval==rzx) {document.form.rezept.options[b].selected=true;}
	else {document.form.rezept.options[b].selected=false;}
	}
}}

function tsum(d,psx,gsx,id) {var ix=id;
var mlim=23; var glim=8; 
var minusp=0; var plusp=0; var minusg=0; var plusg=0;

tx=d.substring(1,d.length); 
preis="versdp"+tx; gewicht="versdg"+tx; origv="origv"+tx;
newval=document.form[d].value; newval=newval*1;
origval=document.form.elements[origv].value; origval=origval*1;

if(psx!="n/a") {psx=psx*1;
minusp=origval*psx; plusp=newval*psx;
document.form.elements[preis].value=currency(plusp);
}
if(gsx!="n/a") {gsx=gsx*1;
minusg=origval*gsx/1000; plusg=newval*gsx/1000; 
document.form.elements[gewicht].value=currency(plusg);
}
document.form[origv].value=newval;


	if(ix!="") {
tvolbox="tvolume"+ix; gvolbox="gvolume"+ix; mvolbox="mvolume"+ix;
var check="nein";

tvol=document.form[tvolbox].value; tvol=tvol*1; tvol=tvol-minusp+plusp; 
if(tvol>=mlim) {check="ja";} document.form[tvolbox].value=currency(tvol);
gvol=document.form[gvolbox].value; gvol=gvol*1; gvol=gvol-minusg+plusg; 
if(gvol>=glim) {check="ja";} document.form[gvolbox].value=currency(gvol);

document.form[mvolbox].value=check;

	if (ie) {docf=document.all['c'+ix];}
	if (ns6) {docf=document.getElementById('c'+ix);}
	if(check=="ja") {cn="greenbox"; docf.disabled=false; docf.checked=true;} 
	else {cn="bluebox"; docf.checked=false; docf.disabled=true;}
	docf.className=cn;

	}
}


function setValue(d) {
var the_val=document.form[d].value; 
if(the_val==0) {document.form[d].value=1;}
}

function currency(currval) {if(currval<0) {currval="0.00";}
str=""+currval; pos= str.indexOf("."); 
if (pos<0) {str=str+".00";} else {str=str.substring(0,pos+3);}
dec=str.substring(pos,str.length); if(dec.length==2) {str +="0";} 
return str;
}

function formvals() {
xname="" + document.Shop.txtLastName.value;
xvname="" + document.Shop.txtFirstName.value;
xadr1="" + document.Shop.txtAddr1.value;
xzip="" + document.Shop.txtZipCode.value;
xcity="" + document.Shop.txtCity.value;
xland="" + document.Shop.txtCountry.value;
xtel="" + document.Shop.txtTel.value;
xemail="" + document.Shop.txtEmail.value;

cname="" + document.Shop.recLastName.value;
cvname="" + document.Shop.recFirstName.value;
cadr1="" + document.Shop.recAddr1.value;
czip="" + document.Shop.recZipCode.value;
ccity="" + document.Shop.recCity.value;
cland="" + document.Shop.recCountry.value;
ctel="" + document.Shop.recTel.value;
cemail="" + document.Shop.recEmail.value;
}

function xcopy() {
if(document.Shop.sync.checked==true) {formvals();
document.Shop.recLastName.value=xname;
document.Shop.recFirstName.value=xvname;
document.Shop.recAddr1.value=xadr1;
document.Shop.recZipCode.value=xzip;
document.Shop.recCity.value=xcity;
document.Shop.recCountry.value=xland;
document.Shop.recTel.value=xtel;
document.Shop.recEmail.value=xemail;
}}


if (document.images) {
ba1= new Image();
ba1.src = "images/pfeilret.gif";
ba1on = new Image();
ba1on.src = "images/pfeilret_a.gif";

ba2= new Image();
ba2.src = "images/pfeilnex.gif";
ba2on = new Image();
ba2on.src = "images/pfeilnex_a.gif";
}

function on(name)  {if (document.images) {document[name].src = eval(name + "on.src");}}
function off(name)  {if (document.images) {document[name].src = eval(name + ".src");}}


var sAgent = navigator.userAgent.toLowerCase(); var msie=0;
if (sAgent.indexOf('msie') != -1 ) {msie=1;}

function goto(url) {
	if(msie) {
var referLink = document.createElement('a');
referLink.href = url;
document.body.appendChild(referLink);
referLink.click();
	} else {location.href = url;}
}

document.write("<LINK REL='stylesheet' HREF='font_ie.css' TYPE='text/css'>"); 
document.write("<LINK REL='stylesheet' HREF='font.css' TYPE='text/css'>");

// -->
