function chkValidMail(pp_strAddress) {		if (window.RegExp) {   	var nonvalido 	= "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)";    	var valido 		= "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";    	var regnv 		= new RegExp(nonvalido);    	var regv 		= new RegExp(valido);    	if (!regnv.test(pp_strAddress) && regv.test(pp_strAddress))      	return true;    	return false;	}else{   	if(pp_strAddress.indexOf("@") >= 0)      	return true;		return false;  	}}function chkValidMailForm(pp_strLanguage) {		var ll_objElement;		ll_objElement = document.forms['shortmessage'].elements['email_address'];			if (!chkValidMail(ll_objElement.value)) {		if (pp_strLanguage == 'IT')			alert('Inserire un indirizzo mail valido.');		else			alert('Please enter a valid email address.');		return false;	}		ll_objElement = document.forms['shortmessage'].elements['your_message'];			if (ll_objElement.value == '') {		if (pp_strLanguage == 'IT')			alert('Inserire il messaggio.');		else			alert('Please enter your message.');		return false;	}			if (ll_objElement.value.length > 1000) {		if (pp_strLanguage == 'IT')			alert('La lunghezza del messaggio non puņ superare i 1000 caratteri.');		else			alert('Length of message exceeds 1000 keystrokes.');		return false;	}			ll_objElement = document.forms['shortmessage'].elements['captcha_img_text'];			if (ll_objElement.value == '') {		if (pp_strLanguage == 'IT')			alert('Il campo "Codice Antispam" č obbligatorio.');		else			alert('Please enter the valid antispam codice.');		return false;	}			if ( (ll_objElement.value.toUpperCase().indexOf('CONTENT-TYPE') != -1) || (ll_objElement.value.toUpperCase().indexOf('MIME-VERSION') != -1)) {//		alert('E\' stato inserito un indirizzo mail non valido.');		return false;	}				return true;}function chkValidMailFormProgetti(pp_strLanguage) {		var ll_objElement;		ll_objElement = document.forms['shortmessage'].elements['email_address'];			if (!chkValidMail(ll_objElement.value)) {		if (pp_strLanguage == 'IT')			alert('Inserire un indirizzo mail valido.');		else			alert('Please enter a valid email address.');		return false;	}		ll_objElement = document.forms['shortmessage'].elements['your_resume'];			if (ll_objElement.value == '') {		if (pp_strLanguage == 'IT')			alert('Inserire il CV autore.');		else			alert('Please enter your resume.');		return false;	}			if (ll_objElement.value.length > 3000) {		if (pp_strLanguage == 'IT')			alert('La lunghezza del CV autore non puņ superare i 3000 caratteri.');		else			alert('Length of your resume exceeds 3000 keystrokes.');		return false;	}			ll_objElement = document.forms['shortmessage'].elements['your_plot'];			if (ll_objElement.value == '') {		if (pp_strLanguage == 'IT')			alert('Inserire la sinossi.');		else			alert('Please enter your plot.');		return false;	}			if (ll_objElement.value.length > 6000) {		if (pp_strLanguage == 'IT')			alert('La lunghezza della sinossi non puņ superare i 6000 caratteri.');		else			alert('Length of your plot exceeds 6000 keystrokes.');		return false;	}			ll_objElement = document.forms['shortmessage'].elements['your_message'];			if (ll_objElement.value.length > 1000) {		if (pp_strLanguage == 'IT')			alert('La lunghezza del messaggio non puņ superare i 1000 caratteri.');		else			alert('Length of message exceeds 1000 keystrokes.');		return false;	}			ll_objElement = document.forms['shortmessage'].elements['captcha_img_text'];			if (ll_objElement.value == '') {		if (pp_strLanguage == 'IT')			alert('Il campo "Codice Antispam" č obbligatorio.');		else			alert('Please enter the valid antispam codice.');		return false;	}			if ( (ll_objElement.value.toUpperCase().indexOf('CONTENT-TYPE') != -1) || (ll_objElement.value.toUpperCase().indexOf('MIME-VERSION') != -1)) {//		alert('E\' stato inserito un indirizzo mail non valido.');		return false;	}				return true;}
