function getXMLHTTP() { //fuction to return the xml http object
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				req = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
    }
	
function p550_AjaxFunction(var1,action,divid) {		
	 if(navigator.appName != "Opera")
	 {
		document.getElementById(divid).innerHTML = '<div class="adv_search" style="color:#F00;font-weight:bold;">Cargando...<center><img src="skins/aguavivaspa/images/loading.gif" alt="loading" /></center></div>';
		var aguavivaspa_strURL="plugins/p550_flash/p550_ajaxfunct.php?p550_actiond="+action+"&var1="+var1;
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById(divid).innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", aguavivaspa_strURL, true);
			req.send(null);
		}
	 }
	 else
	 {
		document.getElementById(divid).innerHTML= 'Tu Navegador No Soporta Esta Funcion Por Favor Descarga Un Navegador Como Mozilla 2 o Internet Explorer 6 o mas <a href="http://download.mozilla.org/?product=firefox-3.5.5&os=win&lang=es-ES">Click Para Descargar Firefox</a>';						
     }
		 
	 
}
    function marquee(){
        document.all.p170_myMarquee.direction = "left";
    }
