/*   IGOR Standard Javascript f. Netscrape 3.x - 6.x und alle IE ab Version 3
Revision: 4.0.027
Datum: 27.10.2009
Copyright (c) 1996-2009 ecw - electronic commerce & web: http://ecw.at/  office@ecw.at
*/
var myziel='waldmain'; var mydomain='www.wald-diecutting.com/';
if (window.name==myziel) parent.document.title = 'Wald Diecutting Systems GmbH - ' + document.title.slice(18,0);
var ie5=(document.all && document.getElementById) ? true : false;
var ie55=(document.all && document.getElementById && navigator.appVersion.indexOf('MSIE 5.0')==-1) ? true : false;
var ie4=(document.all && !document.getElementById) ? true : false;
var ie7=(document.all && window.XMLHttpRequest) ? true : false;
var isIE=(ie5 || ie55 || ie4 || ie7) ? true : false;
var ns6=(!document.all && document.getElementById) ? true : false;
var mac=(navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
var ok=(document.getElementById) ? true : false;
function igorinit() {
setTd();
initdone = true;
return true;
}
function hitFlash(a,b) {
return true;
}
function hitFlashStop() {
return true;
}
function zufav() {
if (window.external) {
window.external.AddFavorite(parent.frames[myziel].location.href, parent.frames[myziel].document.title);
} else alert('Ihr Browser unterstützt diese Funktion nicht.\n\nBitte benutzen Sie die Bookmark Funktion ihres Browsers direkt\n(zB. [Strg]-[D] für Netscape).');
}
function sendpage(l) {
if (l=='e') location.href='mailto:?subject=Interesting URL at www.'+mydomain+'&body='+parent.frames[myziel].document.title+' -> '+parent.frames[myziel].location.href;
else location.href='mailto:?subject=Interessanter URL bei www.'+mydomain+'&body='+escape(parent.frames[myziel].document.title)+' -> '+parent.frames[myziel].location.href;
}
function druck() {
if (window.print) print(this.document);
else if ((navigator.appName == "Microsoft Internet Explorer")) druckie4(this.document); //IE4 ?
}
function druckie4() {
var WebBrowser = '<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6,1);
WebBrowser1.outerHTML = '';
}
function ecwFormat(z) {
var voko = parseInt(z);
if (isNaN(voko)) return '0,00';
var nako = String(Math.round(z*100));
nako = ',' + nako.substr(nako.length - 2,2);
var counter = parseInt((String(voko).length - 1) / 3);
if (counter) {
var e = '';
var a = String(voko).length - (3 * counter);
for (var i=counter; i > 0; i--) e = '.' + String(voko).substring(a+(i-1)*3, a+(i-1)*3+3) + e;
voko = String(voko).substring(0, a) + e;
}
return voko + nako;
}
function i9() {
location.href='/intern/login.asp';
}
function ecwF(w,h,l) {
if (w>0) winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+w;
else winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=' + screen.availWidth;
if (h>0) winPar += ',height='+h;
else winPar+=',height=' + screen.availHeight;
if (w>0 && h>0) winPar += ',left=' + parseInt(( document.body.clientWidth / 2 ) - (w / 2) ) + ',top=10';
else if (w>0) winPar += ',left=' + parseInt(( document.body.clientWidth / 2 ) - (w / 2) ) + ',top=0';
else winPar += ',left=0,top=0';
ecwIntern = window.open(l,'ecwWindow',winPar);
ecwIntern.focus();
return false;
}
function setTd() {
var tds,i;
tds = document.getElementsByTagName('td');
for(i=0; i<tds.length; i++) {
if ( tds[i].id == 'xtd' || tds[i].id == 'xtdg') {
tds[i].onmouseover = x1over;
tds[i].onmouseout = x1out;
}
if ( tds[i].id == 'lfb') {
tds[i].onmouseover = fbOver;
tds[i].onmouseout = fbOut;
}
if ( tds[i].id == 'lst') {
tds[i].onmouseover = stOver;
tds[i].onmouseout = stOut;
}
}
}
function x1over(evt) {
this.style.backgroundColor = '#ff0';
this.style.cursor = 'pointer';
}
function x1out(evt) {
this.style.backgroundColor = '';
this.style.cursor = 'default';
}
function fbOver(evt) {
this.style.backgroundColor = '#f00';
this.style.cursor = 'pointer';
}
function fbOut(evt) {
this.style.backgroundColor = '';
this.style.cursor = 'default';
}
function stOver(evt) {
this.style.backgroundColor = '#ff0';
this.style.cursor = 'pointer';
}
function stOut(evt) {
this.style.backgroundColor = '';
this.style.cursor = 'default';
}
if (window.XMLHttpRequest) var ecw_req = new XMLHttpRequest();
else if (window.ActiveXObject) var ecw_req = new ActiveXObject("Microsoft.XMLHTTP");
else var ecw_req = false;
var ecw_axZiel = '';
var ecw_axQs = '';
var ecw_axTimer = null;
var ecw_reqruns = false;
var ecw_axStackCount = 0;
var ecw_axStackMax = 50;
var ecw_axStackD = new Array();
var ecw_axStackZ = new Array();
for (i=0; i<ecw_axStackMax; i++) { ecw_axStackD[i] = ''; ecw_axStackZ[i] = ''; }
function ecw_ax(d,z) {
if (!ecw_reqruns && ecw_axStackCount==0) {
if (ecw_req) {
ecw_reqruns = true;
var ecw_dat = new Date();
ecw_axZiel = z;
ecw_axQs = d;
ecw_req.open('GET', d + '&rnd=' + ecw_dat.valueOf(), true);
ecw_req.onreadystatechange = ecw_ax_parse;
ecw_req.send(null);
}
else alert('Fehler: ihr Browser unterstützt diese Applikation leider nicht.\nBitte verwenden Sie einen aktuellen Browser.');
}
else {
if (ecw_axStackCount < ecw_axStackMax) {
ecw_axStackCount += 1;
ecw_axStackD[ecw_axStackCount] = d;
ecw_axStackZ[ecw_axStackCount] = z;
}
}
}
function ecw_ax_parse() {
if ( ecw_req.readyState == 4 ) {
ecw_reqruns = false;
if ( ecw_req.responseText.indexOf('invalid') == -1 ) {
if ( ecw_req.status == 200) {
if (ecw_axZiel!='') {
document.getElementById(ecw_axZiel).innerHTML = ecw_req.responseText;
setTd();
}
if (window.ecw_postAx) ecw_postAx(ecw_axQs,ecw_axZiel);
if (ecw_axStackCount > 0) {
if (ecw_axStackD[ecw_axStackCount] != '') ecw_ax(ecw_axStackD[ecw_axStackCount],ecw_axStackZ[ecw_axStackCount]);
ecw_axStackD[ecw_axStackCount] = '';
ecw_axStackZ[ecw_axStackCount] = '';
ecw_axStackCount -= 1;
}
}
else {
document.getElementById(ecw_axZiel).innerHTML = 'Fehler bei der Kommunikation mit dem Server (' + ecw_req.status + ')';
}
}
}
}
function $(n) {
return document.getElementById(n);
}
var shopWin=false;
var ecwSWin;
function pl(i) {
var b = (screen.availWidth>899) ? 880 : 750;
if (i==1) ecwF(b,0,'/e/shop/p_print0.asp');
else ecwF(b,0,'/d/shop/p_print0.asp');
return false;
}
function b2b() {
if (!shopWin) ecShop();
else {
if (ecwSWin.closed) ecShop();
else {
ecwSWin.focus();
}
}
return false;
}
function ecShop() {
var b = (screen.availWidth>899) ? 900 : 750;
var winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width='+b+',height='+screen.availHeight+',top=0,left=0';
ecwSWin = window.open('/shop/','waldb2b',winPar);
shopWin = true;
}
function hitFlash(m,d) {
}
function hitFlashStop() {
}

