function popupimage(imgUrl){
	imgUrl = "popupimage.php?img="+imgUrl+"&screenW="+screen.availWidth+"&screenH="+screen.availHeight;
	window.open(imgUrl,'popupimage','width=200,height=200,top=0,left=0,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}


function fechaDiv(nomeDiv){
	document.getElementById(nomeDiv).style.display = "none";	
}



/*function abreFloater() {
document.write('<div id="floater"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="440" height="210"><param name="movie" value="swf/flooter.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="swf/flooter.swf" width="440" height="210" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object></div>');
}

window.onload = abreFloater();*/

/////////////////////////////////////////
/////Created by Fábio A./////////////////
////////////AJAX Load and Send///////////
/////////////////////////////////////////
var xmlhttp = false;
try {
	xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {
	try {
		xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
	} catch (E) {
		xmlhttp = new XMLHttpRequest();
	}
}
function loadContent(serverpage, method, objid, variables){
		xmlhttp.open(method, serverpage, true);
		if(method == "POST"){
			xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		}
		xmlhttp.onreadystatechange = function () {
			if(xmlhttp.readyState == "4"){
				document.getElementById(objid).innerHTML = xmlhttp.responseText;
			} else {
				document.getElementById(objid).innerHTML = "Carregando...";
			}
		}
		if(variables){
			xmlhttp.send(variables);
		} else {
			xmlhttp.send(null);
		}
}
function submitValues(){
	var result = "";
	for(i=0; i<arguments.length; i++){
		var value = document.getElementById(arguments[i]).value;
		result += arguments[i]+"="+escape(value)+"&";
	}
	document.getElementById('overlay').style.visibility = "visible";
	loadContent("confirmar_estetica.php", "POST", "overlay", result);
}
function submitValues2(){
	var result = "";
	for(i=0; i<arguments.length; i++){
		var value = document.getElementById(arguments[i]).value;
		result += arguments[i]+"="+escape(value)+"&";
	}
	document.getElementById('overlay').style.visibility = "visible";
	loadContent("confirmar_manicure.php", "POST", "overlay", result);
}
function submitValues3(){
	var result = "";
	for(i=0; i<arguments.length; i++){
		var value = document.getElementById(arguments[i]).value;
		result += arguments[i]+"="+escape(value)+"&";
	}
	document.getElementById('overlay').style.visibility = "visible";
	loadContent("confirmar_hair.php", "POST", "overlay", result);
}