
function eraseIt() {
	if (confirm("Sind Sie sicher?")) {
	 	return true;
	} else {
		return false;
	}
}

function openCalc(URL) {
	calcWin=open(URL, "CalcIt", "width=200,height=230,scrollbars=0,menubar=0,status=0,alwaysRaised,top=5,left=600");
	//dependent=1,
	}
	
function openMass(URL) {
	calcWin=open(URL, "MeasureIt", "width=280,height=460,scrollbars=1,menubar=0,status=1,alwaysRaised,resizable=1,top=5,left=600");
	//dependent=1,
	}
	
function openWin(URL) {
	myWin=open(URL, "myWin", "width=600,toolbar=1,scrollbars=1,menubar=1,status=1,resizable=1");
	}

function calcIt() {
	re = /,/gi;
	fett = document.calc1.fett.value;
	kal = document.calc2.kal.value;
	fett=fett.replace(re, ".");
	kal=kal.replace(re, ".");
	document.calc3.erg.value = (fett * 9 * 100 / kal);
}

function startpage() {
	myurl = top.location.href;
	myreg = /main.php/;
	if (myurl.match(myreg)) {
		//document.writeln("true<BR>");
		window.location.replace('../index.html');
	}
}