	document.write("<div id='begin'></div>");

	var fsdiv = document.createElement("div");
	var pageWidth = document.body.scrollWidth>document.body.offsetWidth?document.body.scrollWidth:document.body.offsetWidth;	
	var pageHeight = document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight:document.body.offsetHeight;

	fsdiv.id = "fsdiv";
	fsdiv.style.backgroundColor = "#000000";
	fsdiv.style.padding = "0px";
	fsdiv.style.textAlign = "center";
	fsdiv.style.verticalAlign = "middle";
	fsdiv.style.color = "#ffffff";
	fsdiv.style.fontWeight = 'bold';
	fsdiv.style.width = pageWidth+"px";
	fsdiv.style.height = (pageHeight+100)+"px";
	fsdiv.style.position = "absolute";
	fsdiv.style.top = "0px";
	fsdiv.style.left = "0px";
	fsdiv.opacity = (0.8);
	fsdiv.style.MozOpacity = "0.8";
	fsdiv.style.filter = "alpha(opacity=80)";
	fsdiv.style.zIndex = "90";
	
function processRequest() {
    if (req.readyState == 4) {
        if (req.status == 200) {
          respuesta(req);
        } else {
  			alert ("Not able to retrieve description");
        }
    } else {
		espera();
	}
}

function showPopUp(txtPop, btn) {
	document.getElementById('msg').innerHTML = txtPop;
	//document.getElementById('btnCondiv').href = btn;
	document.getElementById('condiv').style.left = ((pageWidth/2)-170)+"px";
	fsdiv.style.zIndex = "90";
	document.getElementById('begin').appendChild(fsdiv);
	document.getElementById('condiv').style.visibility = "visible";
}

function cerrar()
{
	document.getElementById("condiv").style.visibility = "hidden";
	document.getElementById("begin").removeChild(fsdiv);
}

function addslashes(str) 
{
	str = str.replace(/\'/g,'\\\'');
	str = str.replace(/\"/g,'\\"');
	str = str.replace(/\\/g,'\\\\');
	str = str.replace(/\0/g,'\\0');
	return str;
}

function stripslashes(str) 
{
	str = str.replace(/\\'/g,'\'');
	str = str.replace(/\\"/g,'"');
	str = str.replace(/\\\\/g,'\\');
	str = str.replace(/\\0/g,'\0');
	return str;
}
function espera()
{
	return true;
}
