function getModule(name,params){
    if (params) {
        p = Array();
        for (i=0; i<params.length; i=i+2)
            p.push(params[i]+'='+params[i+1]);
        p = '&'+p.join('&');
    }
    else
        p = '';
    if (document.domain == 'www.terra.com')
        url = 'http://' + document.domain + '/cgi-bin/getModule.cgi?name='+name+p;
    else
	 url = 'http://' + document.domain + '/turismo/services/getModule.php?name='+name+p;

    http.open("GET", url, false);
    http.send(null);  
    return http.responseText;
}

function getHTTPObject(){
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
var http = getHTTPObject();

function neww(url,options) {
        newWindow = window.open(url,'360',options);
}
