//

function Reset(objForm){ objForm.reset(); }

//

function v_reservas(theForm)
{
if (theForm.nome.value == "")
{
	alert("Favor informar seu Nome.");
	theForm.nome.focus();
	return (false);
}

if (theForm.telefone.value == "")
{
	alert("Favor informar seu Telefone.");
	theForm.telefone.focus();
	return (false);
}

if (theForm.email.value.indexOf("@",0) == -1)
{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
		  
	x = theForm.email.value.length;

	x = x - 1;
		  	
	if (theForm.email.value.indexOf("@",0) == x)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
	if (theForm.email.value.indexOf("@",0) == 0)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
        if (theForm.email.value.indexOf(".@",0) != -1)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
	if (theForm.email.value.indexOf("@.",0) != -1)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}

if (theForm.ndias.value == "")
{
	alert("Favor informar o total de dias de hospedagem.");
	theForm.ndias.focus();
	return (false);
}

if (theForm.tipo.value == "0")
{
	alert("Favor selecionar o tipo de apartamento que deseja.");
	theForm.tipo.focus();
	return (false);
}

	theForm.submit;
}

//

function v_fale(theForm)
{
if (theForm.nome.value == "")
{
	alert("Favor informar seu Nome.");
	theForm.nome.focus();
	return (false);
}

if (theForm.email.value.indexOf("@",0) == -1)
{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
		  
	x = theForm.email.value.length;

	x = x - 1;
		  	
	if (theForm.email.value.indexOf("@",0) == x)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
	if (theForm.email.value.indexOf("@",0) == 0)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
        if (theForm.email.value.indexOf(".@",0) != -1)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}
	if (theForm.email.value.indexOf("@.",0) != -1)
	{
	alert("Este E-Mail não é válido.");
	theForm.email.focus();
	return (false);
}

if (theForm.msg.value == "")
{
	alert("Favor informar sua Mensagem.");
	theForm.msg.focus();
	return (false);
}

	theForm.submit;
}

//