Ciao a tutti, ho un piccolo problema. Come esercizio ho da fare dei controlli dei campi di un form e di seguito ho messo i codici inerenti.
Se visualizzo la pagina con Mozilla non c'è problema e tutti i controlli funzionano.
Se invece la apro con Explorer subito all'inizio mi dice "E' stato impedito alla pagina Web di eseguire script o controlli ActiveX. Consenti contenuto bloccato?".
Se dico di no non funziona niente, neanchè il menù dinamico fatto sempre con js.
Se invece acconsento, il tempo di cliccare su first e last name, escono i messaggi di errore che dicono che il campo è obbligatorio e si impalla il browser.

Come posso raggirare questo problema? Grazie a tutti!

Newsletter.html
codice:
<form id="frm" name="myForm" action="http://secnet.di.unito.it/cgi-bin/parrot.cgi" method="post">
	 <fieldset>
		<legend>User Details</legend>
		<table border="0">
			<tr>
				<td>First name: *</td>
				<td><input name="first_name" type="text" onblur="chkName()"></td>
			</tr>
			<tr>
				<td>Last name: *</td>
				<td><input name="last_name" type="text" onblur="chkSurname()"></td>
			</tr>
			<tr>
				<td>E-mail: *</td>
				<td><input name="e_mail" type="text" onblur="chkMail()"></td>
			</tr>
		</table>
	</fieldset>
	<fieldset>
		<legend>Options</legend>
		

		Frequency:
			<select multiple size="1" name="frequency">
				<option selected value="Componente_1">Daily</option>
				<option selected value="Componente_2">Weekly</option>
				<option selected value="Componente_3">Monthly</option>
			</select>
		


		Format:
			<input type="radio" name="format" value="html"> html
			<input type="radio" name="format" value="text"> text
		


		Write a comment
		


			<textarea name="comment" rows="5" cols="40" onblur="chkComment()"></textarea>
		


			<button name="invia" value="Invia" type="submit">
				Invia
				[img]Gallery/Immagini/ok.gif[/img]
			</button>
			<button name="cancella" onclick="return bye()"> 
				Cancella[img]Gallery/Immagini/cancel.gif[/img]
			</button>
		


	</fieldset>
</form>
Control.js
codice:
function chkName() {
	var utente = document.myForm.first_name.value;
	if (utente == '') {
		document.getElementById('msg1').style.display = 'block';
		document.getElementById('msg1').style.color = 'red';
		document.getElementById('msg1').innerHTML = 'Campo First name: questo campo &egrave obbligatorio, inserisci un valore!';
		document.myForm.first_name.focus();
	}
	else {
		var pattern =/[0-9,|, +, --, =, <, >, !=, (, ), %, @, #, *]/ ;
		var ctrl=utente.search(pattern);
		if (ctrl >= 0 || utente.length<2) {
			document.getElementById('msg1').style.display = 'block';
			document.getElementById('msg1').style.color = 'red';
			document.getElementById('msg1').innerHTML = 'Campo First name: il nome non &egrave scritto correttamente!';
			document.myForm.first_name.focus();
			}
		else
			document.getElementById('msg1').style.display = 'none';
	}
	return false;
}

function chkSurname() {
	var utente = document.myForm.last_name.value;
	if (utente == '') {
		document.getElementById('msg2').style.display = 'block';
		document.getElementById('msg2').style.color = 'red';
		document.getElementById('msg2').innerHTML = 'Campo Last name: questo campo &egrave obbligatorio, inserisci un valore!';
		document.myForm.last_name.focus();
	}
	else {
		var pattern =/[0-9,|, +, --, =, <, >, !=, (, ), %, @, #, *]/ ;
		var ctrl=utente.search(pattern);
		if (ctrl >= 0 || utente.length<2) {
			document.getElementById('msg2').style.display = 'block';
			document.getElementById('msg2').style.color = 'red';
			document.getElementById('msg2').innerHTML = 'Campo Last name: il nome non &egrave scritto correttamente!';
			document.myForm.last_name.focus();
			}
		else
			document.getElementById('msg2').style.display = 'none';
	}
	return false;
}

function chkMail() {
	var utente = document.myForm.e_mail.value;
	if (utente == '') {
		document.getElementById('msg3').style.display = 'block';
		document.getElementById('msg3').style.color = 'red';
		document.getElementById('msg3').innerHTML = 'Campo E-mail: questo campo &egrave obbligatorio, inserisci un valore!';
		document.myForm.e_mail.focus();
	}
	else {
		var pattern_mail = /^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
		var ctrl=utente.search(pattern_mail);
		if (ctrl == -1) {
			document.getElementById('msg3').style.display = 'block';
			document.getElementById('msg3').style.color = 'red';
			document.getElementById('msg3').innerHTML = 'Campo E-mail: la mail non &egrave scritta correttamente!';
			document.myForm.e_mail.focus();
			}
		else
			document.getElementById('msg3').style.display = 'none';
	}
	return false;
}

function chkComment() {
	var utente = document.myForm.comment.value;
	var pattern =/[|, +, --, =, <, >, !=, (, ), %, @, #, *]/ ;
	var ctrl=utente.search(pattern);
	if (ctrl >= 0) {
		document.getElementById('msg4').style.display = 'block';
		document.getElementById('msg4').style.color = 'red';
		document.getElementById('msg4').innerHTML = 'Campo Comment: non sono accettati i caratteri |, +, --, =, <, >, !=, (, ), %, @, #, *';
		document.myForm.comment.focus();
		}
	else
		document.getElementById('msg4').style.display = 'none';
	
	return false;
}

function bye() {
	if(confirm('Sicuro?')) {
		document.myForm.style.display = 'block';
		return true;
		}
	else  
		return false;
}