function showMail() {
	document.getElementById('MailForm').style.display = 'block';
}
function hideMail() {
	document.getElementById('MailForm').style.display = 'none';
}
// Get the HTTP Object
function getHTTPObject(){
if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
else if (window.XMLHttpRequest) return new XMLHttpRequest();
else {
alert("We are sorry, but your web browser does not support the called technology.");
return null;
}
}
// Change the value of the outputText field
function setOutput(){
if(httpObject.readyState == 4){
document.getElementById('MailReq').innerHTML = httpObject.responseText;
/* document.getElementById('friendfoo').innerHTML = "<strong style='color: #009900;'>Děkujeme za Vaši zpětnou vazbu.</strong>"; */
}
}
// Implement business logic
function submitMail(){
document.getElementById('submition').value = 'Sending...';
httpObject = getHTTPObject();
if (httpObject != null) {
/* httpObject.open("GET", "feedback.php?spokojen="+document.getElementById('spokojen').checked, true); */
httpObject.open("GET", "/mail.php?CompanyName="+document.getElementById('CompanyName').value
                               +"&ContactPerson="+document.getElementById('ContactPerson').value
							   +"&Address="+document.getElementById('Address').value
							   +"&Phone="+document.getElementById('Phone').value
							   +"&FAX="+document.getElementById('FAX').value
							   +"&Email="+document.getElementById('Email').value
							   +"&Subject="+document.getElementById('Subject').value
							   +"&Message="+document.getElementById('Message').value, true);
httpObject.send(null);
httpObject.onreadystatechange = setOutput;
}
}
var httpObject = null;
