function openBox(content){
	try {
		if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
			$("body","html").css({height: "100%", width: "100%"});
			$("html").css("overflow","hidden");
			if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
				$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}else{//all others
			if(document.getElementById("TB_overlay") === null){
				$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}
		
		$("#TB_overlay").addClass("TB_overlayBG");
		$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
		$('#TB_load').show();
		
		$("#TB_window").append(content);
		
		$("#TB_window div").css({margin: "10px"});
		
		TB_WIDTH = (420*1) + 30 || 630;
		TB_HEIGHT = (260*1) + 40 || 440;

		tb_position();

		$("#TB_load").remove();
		$("#TB_window").css({display:"block"});
		
	} catch(e) {
		//nothing here
	}
}

function openBoxSize(content, w, h){
	try {
		if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
			$("body","html").css({height: "100%", width: "100%"});
			$("html").css("overflow","hidden");
			if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
				$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}else{//all others
			if(document.getElementById("TB_overlay") === null){
				$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}
		
		$("#TB_overlay").addClass("TB_overlayBG");
		$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
		$('#TB_load').show();
		
		$("#TB_window").append(content);
		
		$("#TB_window div").css({margin: "10px"});
		
		TB_WIDTH = (w*1) + 30 || 630;
		TB_HEIGHT = (h*1) + 40 || 440;

		tb_position();

		$("#TB_load").remove();
		$("#TB_window").css({display:"block"});
		
	} catch(e) {
		//nothing here
	}
}

function openPassword() {
	$.get("enviarsenha-ajax.php", function(data){
		openBoxSize(data, 200, 40);
	});
}