
// información barra de estado
status = 'Pieter Verbeek S.L. - Agencia de Seguros - Tlf.: 96 649 32 95';

// informacion de fecha y hora
hoy=new Date();
dia=hoy.getDay()+1;
num=((hoy.getDate()<10) ? "0" : "")+hoy.getDate();
mes=hoy.getMonth()+1;
ano=hoy.getYear();

if(dia==1) Dia="Domingo";
if(dia==2) Dia="Lunes";
if(dia==3) Dia="Martes";
if(dia==4) Dia="Miércoles";
if(dia==5) Dia="Jueves";
if(dia==6) Dia="Viernes";
if(dia==7) Dia="Sábado";

if(mes==1) Mes="Enero";
if(mes==2) Mes="Febrero";
if(mes==3) Mes="Marzo";
if(mes==4) Mes="Abril";
if(mes==5) Mes="Mayo";
if(mes==6) Mes="Junio";
if(mes==7) Mes="Julio";
if(mes==8) Mes="Agosto";
if(mes==9) Mes="Septiembre";
if(mes==10) Mes="Octubre";
if(mes==11) Mes="Noviembre";
if(mes==12) Mes="Diciembre";

// Prepara la cadena de fecha de hoy.
Hoy=(" "+Dia+" "+num+" de "+Mes+ " de "+ano+"");

// Identifiación de la resolución de pantalla

function ancho()
{
	width = screen.availWidth;
	return ancho;
}

function alto()
{
	alto = screen.availHeight;
	return alto;
}

function offerForm(lang)
{
	ventana = window.open("_php/offerform"+lang+".php","","menubar=yes,scrollbars,width=500,height=500");
}

function contactCheckEs(form)
{
	if (form.elements['tx_name'].value == '')
	{
		alert('Por favor, introduzca su nombre.');
		form.elements['tx_name'].focus();
	}
	else if (form.elements['tx_phone'].value == '')
	{
		alert('Por favor, introduzca su número de teléfono.');
		form.elements['tx_phone'].focus();
	}
	else if (form.elements['tx_message'].value == '')
	{
		alert('Por favor, introduzca su mensaje.');
		form.elements['tx_message'].focus();
	}
	else
	{
		form.submit();
	}
}

function contactCheckEn(form)
{
	if (form.elements['tx_name'].value == '')
	{
		alert('Please, type your name.');
		form.elements['tx_name'].focus();
	}
	else if (form.elements['tx_phone'].value == '')
	{
		alert('Please, type your telephone number.');
		form.elements['tx_phone'].focus();
	}
	else if (form.elements['tx_message'].value == '')
	{
		alert('Please, type your message.');
		form.elements['tx_message'].focus();
	}
	else
	{
		form.submit();
	}
}

function contactCheckNl(form)
{
	if (form.elements['tx_name'].value == '')
	{
		alert('Geef a.u.b.uw naam.');
		form.elements['tx_name'].focus();
	}
	else if (form.elements['tx_phone'].value == '')
	{
		alert('Geef a.u.b.uw telefoon Nr.');
		form.elements['tx_phone'].focus();
	}
	else if (form.elements['tx_message'].value == '')
	{
		alert('Geef a.u.b.uw boodschap.');
		form.elements['tx_message'].focus();
	}
	else
	{
		form.submit();
	}
}

function contactCheckGr(form)
{
	if (form.elements['tx_name'].value == '')
	{
		alert('Bitte geben Sie Ihren Namen an.');
		form.elements['tx_name'].focus();
	}
	else if (form.elements['tx_phone'].value == '')
	{
		alert('Bitte geben Sie Ihre Telefon Nr. an.');
		form.elements['tx_phone'].focus();
	}
	else if (form.elements['tx_message'].value == '')
	{
		alert('Bitte geben Sie Ihre Anmerkung an.');
		form.elements['tx_message'].focus();
	}
	else
	{
		form.submit();
	}
}




