function sendEmail(sender,recipient,subject,name,phone,email,message)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="index-sendemail.asp";
url=url+"?sender="+sender;
url=url+"&recipient="+recipient;
url=url+"&subject="+subject;
url=url+"&name="+name;
url=url+"&phone="+phone;
url=url+"&email="+email;
url=url+"&message="+message;
url=url+"&sid="+Math.random();
document.getElementById("actionarea2").innerHTML="Sending email to our Client Care Team for a quick response...<br><img src='images/pleasewait-snake.gif'>";
xmlHttp.onreadystatechange=stateChangedSendEmail;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChangedSendEmail() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("actionarea2").innerHTML=xmlHttp.responseText;
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function hoverButton(cid)
{
		document.getElementById(cid).className='menubutton-hover';
}

function unhoverButton(cid)
{
		document.getElementById(cid).className='menubutton';
}

function showmenu(cid) {
	document.getElementById(cid).className = "menu-open";
	document.getElementById(cid+'items').style.display="block";
	document.emailform.sender.focus();
	}

function hidemenu(cid) {
	document.getElementById(cid).className = "menu-normal";
	document.getElementById(cid+'items').style.display="none";
	}