function Clear()
{
	document.getElementById("result").innerHTML = "";
}
// set
function xmlhttpPost(strURL) 
{
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) 
	{
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else 
		if (window.ActiveXObject) 
		{
			self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		var word = document.getElementById('comments').value;
	word = 'message='+word;
	//var role = getCheckedValue(document.forms['frmFeedback'].elements['role']);
	//word = word+'&role='+role;
	var name = document.getElementById('fullname').value;
	word = word+'&name='+name;
	var email = document.getElementById('email').value;
	word = word+'&email='+email;
	
	//strURL = strURL+word;
    self.xmlHttpReq.open('POST', strURL, true);
	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');			
    //self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() 
	{
		if (self.xmlHttpReq.readyState == 4) 
		{
				updatepage(self.xmlHttpReq.responseText);
		}
    }
	self.xmlHttpReq.send(Utf8.encode(word)); 
    //self.xmlHttpReq.send(null);	
	// Add temporary feedback that the request has been sent   
	//   var loadingImg = document.createElement('img');
	//   loadingImg.src = 'images/working.gif';
	//   loadingImg.class = 'replace';
	//   document.getElementsByTagName('feedback')[0].appendChild(loadingImg);
	
}

function updatepage(str){
/*    
	  var loadingImg = frmFeedback.getElementsByTagName('img');
	  alert(loadingImg);
      var feedbackText = str;
	  alert(str);
      var feedbackSpan = document.createElement('span');
      feedbackSpan.className = 'form_elements_section_subheader';
      feedbackSpan.appendChild(document.createTextNode(feedbackText));
      loadingImg.parentNode.replaceChild(feedbackSpan, loadingImg);
*/
 	  document.getElementById("comments").value="";
	  document.getElementById("result").innerHTML = str;
}