/////////////////////////////////////
var req;

function loadXMLDoc(url,valor)
{
	req = null;
	document.getElementById('sp_title').innerHTML = '<span class="style24" id="sp_title" style="height:70px; text-align:center;">&nbsp;&nbsp; Carregando novo item...</span>';
	document.getElementById('sp_body').innerHTML = '<div class="style21" id="sp_body" style="font-size:11px; height:235px; overflow:auto; font-family:Arial, Helvetica, sans-serif; font-weight:normal;">Carregando novo item...</div>';
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = processReqChange;
        req.open("GET", url, true);
        req.send(null);
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = processReqChange;
            req.open("GET", url, true);
            req.send();
        }
    }
}

function processReqChange()
{
    if (req.readyState == 4) {
        if (req.status == 200) {
			///---------------
					if (req.responseText!=''){
						itms = req.responseText.split('||::||__||::||');
						document.getElementById('sp_title').innerHTML = '<span class="style24" id="sp_title" style="height:70px; text-align:center;">'+itms[0]+'</span>';
						document.getElementById('sp_body').innerHTML = '<div class="style21" id="sp_body" style="font-size:11px; height:235px; overflow:auto; font-family:Arial, Helvetica, sans-serif; font-weight:normal;">'+itms[1]+'</div>';
						altShopping();
					}
			///---------------
        } else {
            alert("Houve um problema ao obter os dados:\n" + req.statusText);
        }
    }
}

function Atualiza(valor)
{
	loadXMLDoc("eng.shopping.php",valor);
}