function show(id,oForm)
{
	el = document.getElementById(id);
	var el2 = document.Alta.Oficinas.value;
	if (el.style.display == 'none' && el2 == 'Almeria Flughafen')
	{
		el.style.display = '';
	} else {
		el.style.display = 'none';
	}
}
var nav4 = window.Event ? true : false;
function acceptNum(evt)
{     
	var key = nav4 ? evt.which : evt.keyCode;
	return (key <= 13 || (key >= 48 && key <= 57));
}
function checkemail(email)
{
	var ind1, ind2, ind3;
	ind1 = email.indexOf('@');
	ind2 = email.indexOf('.');
	ind3 = email.lastIndexOf('@');
	if ((ind1<=0) || (ind2<ind1) || (ind3 != ind1))
		  return true;
	else
		 return false;
}
function comprobar()
{
	if (document.Alta.Grupo.value=="")
	{
		alert("SIE MÜSSEN EINE UNTERKATEGORIE WÄHLEN");
		document.Alta.Grupo.selectedIndex=0;
	}	
}
function compruebareserva()
{
	if (document.Alta.Grupo.value=="")
	{
		alert("SIE MÜSSEN EINE GRUPPE IM FELD „FAHRZEUG“ WÄHLEN");
		document.Alta.Grupo.selectedIndex=0;
		return false
	}
	fechareves1=document.Alta.anyo1.value+document.Alta.mes1.value+document.Alta.dia1.value;
	fechareves2=document.Alta.anyo2.value+document.Alta.mes2.value+document.Alta.dia2.value;
	if (fechareves1>fechareves2)
	{
		alert("DIE DATEN STIMMEN NICHT – DAS ABGABEDATUM IST VOR DEM ABHOLUNGSDATUM ");
		return false
	}
	document.Alta.submit();
}
function compruebadatosreserva()
{
	if (document.Alta.email.value=="")
	{
		alert("SCHREIBEN SIE BITTE IHREN E-MAIL");
		document.Alta.email.focus();
		return false
	}
	if (document.Alta.nombre.value=="")
	{
		alert("SCHREIBEN SIE BITTE IHREN VORNAMEN.");
		document.Alta.nombre.focus();
		return false
	}
	if (document.Alta.apellidos.value=="")
	{
		alert("SCHREIBEN SIE BITTE IHREN FAMILIENNAMEN.");
		document.Alta.apellidos.focus();
		return false
	}
	if (document.Alta.direccion.value=="")
	{
		alert("SIE MÜSSEN IHREN KOMPLETTE ADRESSE");
		document.Alta.direccion.focus();
		return false
	}
	if (document.Alta.pais.value=="")
	{
		alert("SCHREIBEN SIE BITTE IHREN LAND");
		document.Alta.pais.focus();
		return false
	}
	if (document.Alta.telefono.value=="")
	{
		alert("SCHREIBEN SIE BITTE IHREN TELEFON");
		document.Alta.telefono.focus();
		return false
	}
	document.Alta.submit();
}
function compruebacontacte()
{
	if (document.contacte.nombre.value=="")
	{
		alert("SCHREIBEN SIE BITTE IHREN VORNAMEN.");
		document.contacte.nombre.focus();
		return false
	}
	if (document.contacte.email.value=="")
	{
		alert("SCHREIBEN SIE BITTE IHREN E-MAIL");
		document.contacte.email.focus();
		return false
	}
	if (checkemail(document.contacte.email.value))
	{
		alert("SIE MÜSSEN EINE GÜLTIGE E-MAIL-ADRESSE ANGEBEN");
		document.contacte.email.focus();
		return false;
	}
	if (document.contacte.comentarios.value=="")
	{
		alert("SIE MÜSSEN DEN INHALT DER NACHRICHT ANGEBEN");
		document.contacte.comentarios.focus();
		return false
	}
	document.contacte.submit();
}