function ajax_php(passPar,outDiv) {
		var xmlhttp=false;
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
//alert(passPar);
		xmlhttp.open("GET", passPar,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
//			  	alert(xmlhttp.responseText)
				if (outDiv=='inputLoc') {
					document.getElementById(outDiv).innerHTML=xmlhttp.responseText;
				} else {
					if (xmlhttp.responseText!='') {
						document.getElementById(outDiv + '_msg').style.border='#FF0000 solid 1px';
						document.getElementById(outDiv + '_msg').style.color='#FF0000';
						document.getElementById(outDiv + '_msg').innerHTML=xmlhttp.responseText;
						document.getElementById(outDiv).value='';
					} else {
						document.getElementById(outDiv + '_msg').style.border='';
						document.getElementById(outDiv + '_msg').innerHTML='';
					}
				}
 			}
		}
		xmlhttp.send(null);
//		readOK=1;
//	}
}

function ajax_Denominazione_provincia(myValue) {
	document.getElementById('inputLoc').innerHTML='<img src="img/indicator.gif" border=0 class="ajaxgif">';
	ajax_php('content/srcloc.php?prov=' + myValue,'inputLoc')
}

function ajax_Denominazione_provincia_test(myValue) {
alert("ok");
	document.getElementById('inputLoc').innerHTML='<img src="img/indicator.gif" border=0 class="ajaxgif">';
	ajax_php('content/srcloc.php?prov=' + myValue,'inputLoc')
}

function ajax_Test_User(myValue){
  ajax_php("content/testuser.php?user=" + myValue,'userId');
}

function ajax_Test_Email(myValue){
  ajax_php("content/testemail.php?email=" + myValue,'email');
}





