function wSize()
{
var W_H={x:0,y:0};
	if (self.innerHeight){W_H.x=self.innerWidth;W_H.y=self.innerHeight;}
		else if (document.documentElement&&document.documentElement.clientHeight){W_H.x=document.documentElement.clientWidth;W_H.y=document.documentElement.clientHeight;}//IE6 Strict
			else if (document.body){W_H.x=document.body.clientWidth;W_H.y=document.body.clientHeight};
return W_H
};
function repos()
{var w_Size=wSize();
iW=w_Size.x;
iH=w_Size.y;
document.getElementById("marm").style.height = iH + "px"; document.getElementById("marm").style.position = "absolute"; if (iW > document.getElementById("marm").offsetWidth) document.getElementById("marm").style.left = iW/2 - document.getElementById("marm").offsetWidth/2 + "px"; if (iH > document.getElementById("height").offsetWidth) document.getElementById("height").style.top = iH/2 - document.getElementById("height").offsetHeight/2 + 12 + "px";
}
repos();
window.onresize=repos;
function red(obj) { obj.style.background = "lime"; obj.firstChild.style.color = "indigo"};
function indigo(obj) { obj.style.background = "indigo"; obj.firstChild.style.color = "ivory"};
window.defaultStatus="_Balsam Digital Media_";

var pop = null; 
function popdown()
{
if (pop && !pop.closed) pop.close();
};

function popup(obj,w,h)
{
var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
if (!url) return true; 
w = (w) ? w += 20 : 150; // 150px*150px is the default size
h = (h) ? h += 25 : 150;
var args = 'width=' + w + ',height=' + h + ',resizable,left=12,top=12'; 
pop = window.open(url,'',args);
return (pop) ? false : true; 
};
//window.onunload = popdown; window.onfocus = popdown; 

function sichern () {
	for (var i = 0; i < Best.length; i++) { 
		BestArtikel_string += Best[i]["Artikel"] + "§";
		BestArtikelmailen_string += Best[i]["Artikelmailen"] + "§";
		BestStueckpreis_string += Best[i]["Stueckpreis"] + "§";
		BestSumme_string += Best[i]["Summe"] + "§";
		BestAnzahlSchriften_string += Best[i]["AnzahlSchriften"] + "§";
		BestAnzahl_string += Best[i]["Anzahl"] + "§";
		BestVorgaenge_string += BestVorgaenge[i] + "§";
	};
store.set("Anzahl", sel);//Anzahl aktueller Put
store.set("Summe", Summe);//Summe des aktuellen Puts
store.set("pos", pos);//wievielte Stelle im Assoz. Array Best
store.set("putWK", putWK);//aktiver Bestellvorgang?
store.set("BestArtikel_string", BestArtikel_string); 
store.set("BestArtikelmailen_string", BestArtikelmailen_string);
store.set("BestStueckpreis_string", BestStueckpreis_string);
store.set("BestSumme_string", BestSumme_string);//die jeweilige Summe aller Puts
store.set("BestAnzahl_string", BestAnzahl_string); //alert(BestAnzahl_string);//die jeweilige Anzahl aller Puts
store.set("BestAnzahlSchriften_string", BestAnzahlSchriften_string);//die jeweilige Anzahl aller PDF-Puts
store.set("BestVorgaenge_string", BestVorgaenge_string);
};
