function getHTTPObject() {
  var xmlhttp;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)
  var ids = ["Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0", "Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
  for(var i=0; !xmlhttp && i<ids.length; i++) {
    try{ xmlhttp = new ActiveXObject(ids[i]); }
    catch(ex) { xmlhttp = false; }
  }
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}


function changeDivContent(divName,content) {
  if (document.getElementById) { 
    if (document.getElementById(divName)!=null) {
      document.getElementById(divName).innerHTML = content; 
	}
  }
  else if (document.all) { document.all[divName].innerHTML = content; }
  else if (document.layers) {
	var ms = document.layers[divName].document;
	ms.open();
	ms.write(content);
	ms.close();
  }
}



function addOnLoad( func ) {
	var oldonload=window.onload;
	if(typeof(func)=='function') {
		if(typeof(oldonload)=='function') window.onload=function(){oldonload();func();};
		else window.onload=function(){func();};	
	}
}

function getParametros (){
  cadVariables = top.document.location.search.substring(1,top.document.location.search.length); 
  arrVariables = cadVariables.split("&");  
  params = new Array(arrVariables.length);
  for (i=0; i<arrVariables.length; i++) {
    arrVariableActual = arrVariables[i].split("=");
	if (arrVariableActual[1]==undefined) {arrVariableActual[1]="";}
	eval("params['"+arrVariableActual[0]+"']='"+unescape(arrVariableActual[1])+"'");
  }
  return params;
}


