<!--
	var http = new createRequestObject();
	function createRequestObject() {
		var xmlhttp;
		try { 
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
		}
	  	catch(e) {
	    		try { 
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
	    		catch(f) { 
				xmlhttp=null; 
			}
	  	}
	  	
		if(!xmlhttp&&typeof XMLHttpRequest!="undefined") {
	  		xmlhttp=new XMLHttpRequest();
	  	}
		
		return  xmlhttp;
	}

	/* send Request */
	function sendRequest(pmail) {
		var mail = escape(pmail);
		try
		{
    		http.open('POST',  'registo.asp', true);
		http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	    http.onreadystatechange = handleResponse;
		http.send('email=' + mail);
		}
		catch(e){
		}
		finally{
		}
	}



	/* handle Response */
	function handleResponse() {
		try
		{
			if(http.readyState == 4 && http.status==200){
				var response = http.responseText;
				response = unescape(response);
				document.getElementById("divMsg").innerHTML += response;
				//setTimeout("document.getElementById('divMsg').innerHTML='';",20000)
			}
  		}
		catch(e)
		{
			//document.getElementById("divErrMsg").innerHTML = 'Erro a Enviar Mensagem';
		}
		finally
		{
		}
	}

 // -->
