function ax_variavel(obj) {
	/*alert(obj.name+"\r\n"+obj.value+"\r\n"+obj.type);//.name .type .value .form*/
	ax_pagina('funcoes.php', '?nome='+obj.name+'&valor='+obj.value, 'none');
}	
function ax_pagina(url, parameters, local) {
	document.getElementById('main').style.cursor = "wait";
	frame = local;
	http_request = false;
	if (window.XMLHttpRequest) { 
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/html');
		}
	} else if (window.ActiveXObject) {
		try { http_request = new ActiveXObject("Msxml2.XMLHTTP.4.0");
		} catch(e) {
			try { http_request = new ActiveXObject("Msxml2.XMLHTTP.3.0");
			} catch(e) {
				try { http_request = new ActiveXObject("Msxml2.XMLHTTP");
				} catch(e) {
					try { http_request = new ActiveXObject("Microsoft.XMLHTTP");
					} catch(e) {
						/*retorna erro*/
					}
				}
			}
		}
	}
	if (!http_request) {
		alert('não foi possivel criar XMLHTTP instance');
		return false;
	}
	http_request.onreadystatechange = abreJanela;
	http_request.open('GET', url + parameters, true);
	http_request.send(null);
}
function abreJanela() {
	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			document.getElementById('main').style.cursor = "default";
			document.getElementById(frame).innerHTML 	 = http_request.responseText;
		} else {
			alert('arquivo não encontrado'+ http_request.statusText);
		}
	}
}