Hello

Anyone know what's wrong with my code?

Code:
function verify(){
	for  (var i=1; i<5 ;i++){	
		var valor= "title"+i;
		alert(valor);
		var el=document.getElementById(valor);
		var re=/^[a-zA-Z0-9 ]+$/;
		if(!re.test(el.value)) 
		{
			alert("Remove special characters!");
			document.getElementById(valor).value="";
		}
}
}
Thanks!