
function melden(txt) { if(1) alert(txt); }

function zeile(idnr) { return Math.floor((idnr-1)/anz_cols)+1; }
function spalte(idnr) { return idnr-((zeile(idnr)-1)*anz_cols); }

function randomNr(nr) { return Math.floor(Math.random() * nr); }

function pImg(src) { 
temp = new Image();
temp.src = src;
return temp;
}

function zeile(nr) { return Math.floor((nr-1) / pld["pref"].Area._cols)+1; }
function spalte(nr) { return nr-((zeile(nr)-1) * pld["pref"].Area._cols); }

var pld = new Array(); 
pld["pref"] = new Array(); 

function Fensterweite() { 
if (window.innerWidth) return window.innerWidth;
else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
else return 0;
}

function Fensterhoehe() { 
if (window.innerHeight) return window.innerHeight;
else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
else return 0;
}

function neuAufbau() { 
if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
window.history.go(0);
}

var useReload = 1;
if(useReload) { 
if(!window.Weite && window.innerWidth) { 
window.onresize = neuAufbau;
Weite = Fensterweite();
Hoehe = Fensterhoehe();
}
}

