function send(el) {
	var tags = new Array("input","textarea");
	
	for (var k = 0; k < tags.length; ) {
		var ar = el.getElementsByTagName(tags[k++]);
		var cc = null;
		
		for (var i = 0; i < ar.length;) {
			cc = ar[i++];
			if(cc.getAttribute("obg")=='yes'){
				if(cc.value==""){
					alert(cc.getAttribute("err"));
					cc.focus();
					return false;
				}else{
					var isValid;
					var oComments = '';
					
					switch(cc.getAttribute("special")){
						case null : isValid = true;
									break;
						case "email" : 	isValid = validMail(cc.value);
										oComments = "\nEx.: nom@site.com";
										break;
						case "nospecial" :  isValid = validSpecial(cc.value);
											oComments = "\nSeulement: a-z, A-Z, 0-9";
											break;
					};
					
					if(!isValid){
						alert(cc.getAttribute("err")+oComments);
						cc.focus();
						return false;
					};
				};
			};
		};
	};
	return true;
} 

function validMail(fStr){
	if(fStr.indexOf("@")==-1){return false};
	if(fStr.indexOf(".")==-1){return false};
	return true;
} 

function validSpecial(fStr){
	myReg = new RegExp("[A-Za-z0-9]+");
	if(myReg.exec(fStr)!=fStr){return false};
	return true;
} 