<!--
function url()
{
  if ((location.host == "latorrepizza.de") || (location.host == "ftp.latorrepizza.de") || (location.host == "www.latorre.pizza-com.de") || (location.host == "latorre.pizza-com.de"))
  	{
  	window.location.href="http://www.latorrepizza.de";
  	}
}	
  url();
  
// -->

function setPointer(theRow, thePointerColor) { // Farbwechsel im <tr> einer Tabelle
	if(thePointerColor == '' || typeof(theRow.style) == 'undefined') {
		return false;
	}
	if(typeof(document.getElementsByTagName) != 'undefined') {
		var theCells = theRow.getElementsByTagName('td');
	} else if(typeof(theRow.cells) != 'undefined') {
		var theCells = theRow.cells;
	} else {
		return false;
	}
	var rowCellsCnt  = theCells.length;
	for(var c = 0; c < rowCellsCnt; c++) {
		theCells[c].style.backgroundColor = thePointerColor;
	}
	return true;
}
function CheckLen(Target) {	// Pruefung der Eingabemenge im Textfeld
    StrLen = Target.value.length
    if (StrLen == 1 && Target.value.substring(0,1) == " ") {
            Target.value = ""
            StrLen = 0}
    if (StrLen > 1234 ) {
    	Target.value = Target.value.substring(0,1200)
    	alert("Danke, Danke, Danke! \nDas wird hier sonst zuviel. \nSchreiben Sie jetzt noch zu Ende, \nmit restlich [ 33 ] Zeichen.");
    	CharsLeft = 0}
    else {
    CharsLeft = 1234 - StrLen}
    document.mhpost.Anzahl.value = CharsLeft
}
function sendmail(to) {		// Uebergabe der Mailadresse an das Formular
	document.forms.mhpost.postzu.value = to;
	document.forms.mhpost.submit();
}
function ResetCheck () {	// Abfrage bei Reset im Formular
  var chk = window.confirm("Wollen Sie alle Eingaben loeschen?");
  return (chk);
}
