function color(tabId,bcolor)
{
	if (document.all)
	{
		var thestyle= eval ('document.all.'+tabId+'.style');
		thestyle.backgroundColor=bcolor;
	}
	if (document.getElementById)
	{
		var thestyle= eval ('document.getElementById(tabId)'+'.style');
		thestyle.backgroundColor=bcolor;
	}
}

function checkform()
{
    validate = true;
  	if ( sprache == "de" )
	{
		if ( check_empty(document.Einhaus.datum.value) || check_empty(document.Einhaus.name_vorname.value) || check_empty(document.Einhaus.geburtsdatum.value) || check_empty(document.Einhaus.strasse.value) || check_empty(document.Einhaus.plz_ort.value) || check_empty(document.Einhaus.telefon.value) )
	    { 
			validate = false;
			alert('Ihre Angaben sind leider unvollständig.');
			return validate;
		}
		else
		{
			document.Einhaus.submit();
		}
	}
	if ( sprache == "it" )
	{
		if ( check_empty(document.Einhaus.datum.value) || check_empty(document.Einhaus.name_vorname.value) || check_empty(document.Einhaus.geburtsdatum.value) || check_empty(document.Einhaus.strasse.value) || check_empty(document.Einhaus.plz_ort.value) || check_empty(document.Einhaus.telefon.value) )
	    { 
			validate = false;
			alert('Ci dispiace, ma i suoi dati non sono completi.');
			return validate;
		}
		else
		{
			document.Einhaus.submit();
		}
	}
}
   
function check_empty(feld) 
{
	feld=String(feld);
	if (feld.length>0)
	{
		return false;
	}
    return true;
}

// Aus alter Seite übernommen

function zustaendig(adresse)
{
	inside=window.open(adresse,'inside','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes,copyhistory=no,width=640,height=570')
	inside.focus(); // Fokus beim erneuten Laden
}

function MM_displayStatusMsg(msgStr) 
{
  status=msgStr;
  document.MM_returnValue = true;
}

