function $(id)
{
	return document.getElementById(id);
}
function toSubmit()
{
	var tel1 = $('p9').value;
	var tel2 = $('p10').value;
	var mail1 = $('p15').value;
	var mail2 = $('p16').value;
	if(!tel2)
	{
		alert('Tel not filled!');
		return false;
	}else if(!mail1 && !mail2)
	{
		alert('E-mail not filled!');
	}else if(mail1 != mail2)
	{
		alert('E-mail inconsistency');
	}else
	{
		$('myform').submit();
	}
}
