function getXmlHttp(){
    var xmlhttp;
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try {
	      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	    } catch (E) {
	      xmlhttp = false;
	    }
    }
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
         xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}

function vote(msg) {
    if (msg.length>=1){
    var req = getXmlHttp() 
    var statusElem = document.getElementById('vote_status')
    req.onreadystatechange = function() {
      if (req.readyState == 4) {
          if(req.status == 200) {
             document.getElementById('uMsg').value=""; 
             document.getElementById('addMessage').style.display="none"; 
             alert ("Thank you for sharing your opinion with www.gamerjewelry.com, our team will carefully examine your comments and suggestions.");
	  }
      }
    }
    req.open('GET', 'saveMsg.php?msg='+msg, true); 
    req.send(null); 
    }
}
