var First = "nenhum";
var evalValue = '';
var z1_rm_tag;
//window.onerror = function (m,a1,a2,a3) { alert(m); }
function z1Alert(txt)
	{
		try { evalValue = arguments[1]; }
		catch(e) { ; }
		var htmlTag = document.createElement("div");

		htmlTag.style.width = '100%';
		htmlTag.style.height = '100%';

		ray = document.getElementsByTagName("input");
		for (i=0;i<ray.length;i++)
			{
				ray[i].disabled = 'true';
			}
		ray = document.getElementsByTagName("select");
		for (i=0;i<ray.length;i++)
			{
				ray[i].disabled = 'true';
			}
		
		htmlTag.innerHTML = z1Alert_html;
		document.getElementsByTagName("body").item(0).appendChild(htmlTag);
		document.getElementById("AlertWindow").style.display = '';
		try { document.getElementsByTagName("table").item(0).style.display = 'none'; }
		catch(e) { ; }
		
		window.location.assign('#');

		document.getElementById("AlertArea").innerHTML = txt;
		z1_rm_tag = htmlTag;
		
		return false;
	}
function z1Alert_Ok()
	{
		document.getElementById("AlertWindow").style.display = 'none';
		ray = document.getElementsByTagName("input");
		for (i=0;i<ray.length;i++)
			{
				ray[i].disabled = '';
			}
		ray = document.getElementsByTagName("select");
		for (i=0;i<ray.length;i++)
			{
				ray[i].disabled = '';
			}
		try {
			document.getElementsByTagName("body").item(0).removeChild(z1_rm_tag);
		} catch(e) {}
		document.getElementsByTagName("table").item(0).style.display = '';
		
		try { First.focus(); }
		catch(e) { eval(evalValue); }
	}

	
var z1Alert_html =  '<div id="AlertWindow" class="alertDialog" style="display:none">' +
					'	<div class="dialogTop">' +
					'		<p>Atenção!</p>' +
					'	</div>' +
					'	<div class="dialogMain">' +
					'		<div style="float:left;margin:25px 0 0 20px;">' +
					'			<img src="http://www.azonasul.org.br/tpls/img/ico_alert.gif" />' +
					'		</div>' +
					'		<div style="margin:10px 0 25px 100px;">' +
					'			<div id="AlertArea">' +
					'			</div>' +
					'			<input type="button" value="Continuar" onclick="z1Alert_Ok();" class="alertSubmit" />' +
					'		</div>' +
					'	</div>' +
					'</div>';