function DoWhenInit()

{

	try

	{

		var f=this.parent.document.getElementById('feedback992006184537');

		f.style.height=this.contentWindow.document.body.scrollHeight;

	}

	catch(e){}

}

function CheckRequired()

{

	if(document.forms[0].send_LastName.value==''||document.forms[0].send_FirstName.value==''||document.forms[0].send_EMailAddr.value==''||document.forms[0].send_Country.value==''||false)

	{

		alert('Los campos marcados con * son obligatorios.');

		return false;

	}

	else

		return true;

}



function CheckEMail()

{

	var mail=document.getElementById('send_EMailAddr').value;

	var v = new Validator();

	if(mail!='' && !v.verMAIL(mail))

	{

		alert('E-mail no valido');

		return false;

	}

	else

		return true;

}



function CheckTel(val,errStr)

{

	return CheckInt(document.getElementById('send_Tel').value,'\'Telephone\' field can contain only integer values.');

}



function CheckInt(val,errStr)

{

	if(val!='' && !/^[0-9]+$/.test(val))

	{

		alert(errStr);

		return false;

	}

	else

		return true;

}



function Send()

{

	if(CheckRequired() && CheckEMail()&&CheckTel()&&true)

	{

		window.document.body.style.cursor="wait";

		var is=document.getElementsByTagName('input');

		for(var i=0;i<is.length;i++)

			is[i].style.cursor="wait";

		var is=document.getElementsByTagName('textarea');

		for(var i=0;i<is.length;i++)

			is[i].style.cursor="wait";

		document.getElementById('feedback').submit();

	}

}

function ResetForm()

{

	document.forms[0].reset();

}
