var http_requestx = false;
   function makePOSTRequestx(urlx, parametersx) {
      http_requestx = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_requestx = new XMLHttpRequest();
         if (http_requestx.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http_requestx.overrideMimeType('text/xml');
            http_requestx.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_requestx = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_requestx = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_requestx) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      
      http_requestx.onreadystatechange = alertContentsx;
      http_requestx.open('POST', urlx, true);
      http_requestx.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http_requestx.setRequestHeader("Content-length", parametersx.length);
      http_requestx.setRequestHeader("Connection", "close");
      http_requestx.send(parametersx);
   }

   function alertContentsx() {
      if (http_requestx.readyState == 4) {
         if (http_requestx.status == 200) {
            //alert(http_requestx.responseText);
            resultx = http_requestx.responseText;
            document.getElementById('val').innerHTML = resultx;            
         } else {
            alert('Cannot complete request');
         }
      }
   }
   
   function getx(obj) {
      var poststrx = "fname=" + encodeURI( document.getElementById("fname").value ) +
                    "&lname=" + encodeURI( document.getElementById("lname").value ) +
                    "&addr=" + encodeURI( document.getElementById("addr").value ) +
                    "&city=" + encodeURI( document.getElementById("city").value ) +
                    "&state=" + encodeURI( document.getElementById("state").value ) +
                    "&zip=" + encodeURI( document.getElementById("zip").value ) +
                    "&country=" + encodeURI( document.getElementById("country").value ) +
                    "&phone=" + encodeURI( document.getElementById("phone").value ) +
                    "&fax=" + encodeURI( document.getElementById("fax").value ) +
                    "&email=" + encodeURI( document.getElementById("email").value ) +
                    "&info_ships_hill_estate_homes=" + encodeURI( document.getElementById("info_ships_hill_estate_homes").value ) +
                    "&info_ships_hill_town_homes=" + encodeURI( document.getElementById("info_ships_hill_town_homes").value ) +
                    "&info_shell_point=" + encodeURI( document.getElementById("info_shell_point").value ) +
                    "&harbour_court_villas=" + encodeURI( document.getElementById("harbour_court_villas").value ) +
                    "&golf_villas=" + encodeURI( document.getElementById("golf_villas").value ) +
                    "&harbour_court=" + encodeURI( document.getElementById("harbour_court").value ) +
                    "&hear_about_us=" + encodeURI( document.getElementById("hear_about_us").value ) +
                    "&comments=" + encodeURI( document.getElementById("comments").value );
      makePOSTRequestx('val_contact.cfm', poststrx);
   }
