// JavaScript Document
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{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
    }


function getState(parentLocat)
{
   var strURL="populateSelect1.php?zona="+parentLocat;
   var req = getXMLHTTP();
   if (req)
   {
     req.onreadystatechange = function()
     {
      if (req.readyState == 4)
      {
		   if (req.readyState == 1 /* loading */ ) {
               document.getElementById('localDiv').innerHTML="Cargando";
               } 
		  
		  
		  
	 // only if "OK"
	 if (req.status == 200)
         {
	    document.getElementById('localDiv').innerHTML=req.responseText;
	 } else {
   	   alert("Hubo un problema al enviar la solicitud:\n" + req.statusText);
	 }
       }
      }
   req.open("GET", strURL, true);
   req.send(null);
   }
}
<!--
	function updateResponseDiv(req) 
	{
		Spry.Utils.setInnerHTML('formResp', req.xhRequest.responseText);
		document.getElementById('formCont').reset();
	}
	
	
	function validateonsubmit(form){
	
		if (Spry.Widget.Form.validate(form) == true){
			
			Spry.Utils.submitForm(form, updateResponseDiv);
			
			
		}
		return false;
	}


function abrirVentana(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=0,width=450,height=450');");
}
/*	var Tpar = document.getElementById('thumbsP');
	var Limg = Tpar.getElementsByTagName('img');
	var imgPC = document.getElementById('imgPrinc');
	var Pimg =imgPC.getElementsByTagName ('img');
	Limg[0].className = 'activo';
	Pimg[0].className = 'activo';
	*/
	
	

	
//-->





/*
function activarLinks(){
	var sidebar = document.getElementById('menu8');
	var enlace = sidebar.getElementsByTagName('a');
	
	for (i=0;i<enlace.length;i++)
		 {
		
		 } alert(enlace[i]);
	enlace[i].onclick = Function (activa(enlace[i]));
	
 

//s[i].onclick = Function("ShowValue('"+s[i].innerText+"')");       
 }            
  
	
function	activa(d){d.setAttribute("id", "activa");}

window.onload = function() {
			activarLinks();
		}
*/
