

function enviar_form(nome, email, telefone, assunto, endereco, mensagem){

	AjaxRequest.get({

			'url':'contato2.php?nome='+nome+'&email='+email+'&telefone='+telefone+'&assunto='+assunto+'&endereco='+endereco+'&mensagem='+mensagem,

			'onLoading':function(){

				document.getElementById('conteudo').innerHTML = msg_LoadingInfo;

			},

			'onSuccess':function(req){

				document.getElementById('conteudo').style.padding = "30px";

				document.getElementById('conteudo').innerHTML = req.responseText;

				

			},

			'onError':function(req){

				alert(msg_Error + req.statusText);

			}

		});

}



//



function chama_link(id,vlr_link){	

	AjaxRequest.get({

			

			'url':vlr_link,

					

			'onLoading':function(){

				document.getElementById(id).innerHTML = msg_LoadingInfo;

			},

			'onSuccess':function(req){

	            document.getElementById(id).innerHTML = req.responseText;

			},

			'onError':function(req){

				alert(msg_Error + req.statusText);

			}

		});

}



