function CheckInfo(){
			
	var user = document.getElementById('TxtUser');
	var mail = document.getElementById('TxtEmail');		
	var subject = document.getElementById('TxtSubject');	
	var comment = document.getElementById('TxtAreaComments');
	var regEmail    = /^([A-Za-z0-9\-\_\.])+\@(([A-Za-z0-9\-\_])+\.)+([A-Za-z])+$/;
        
		
	user.value = user.value.trim();
	mail.value = mail.value.trim();
	subject.value = subject.value.trim();
	comment.value = comment.value.trim();
			
	//username
	if(user.value =="")
	{
		alert('Username cannot be empty');
		user.focus();
		return false;
	}
	
//mail
	if (mail.value.trim() == ''){
		alert('Email cannot be empty');
		mail.focus();
		return false;
	}
	if ((mail.value.indexOf ('@',0)==-1) || (mail.value.indexOf ('.',0)==-1) || (mail.value.length <5)) {
		alert('Email is not valid');
		mail.focus();
		return false;
	}
	if (mail.value.indexOf ('@',0)==(mail.value.indexOf ('.',0)-1)){
		alert('Email is not valid');
		mail.focus();
		return false;
	}
	if( !regEmail.test(mail.value) ) {
		alert('Email is not valid');
		mail.focus();
		return false;
	}
	
	//Asunto
	if(subject.value =="")
	{
		alert('Subject cannot be empty');
		subject.focus();
		return false;
	}
	
	//Comentarios
	if(comment.value =="")
	{
		alert('Comment cannot be empty');
		comment.focus();
		return false;
	}
	
	f = document.frmContact;
	f.target ="_self";
	f.action = "";
	f.submit();
		
	
}