var xmlHttpCONTRIBUTE

function Waiting() {
    document.getElementById('imgContributeWait').style.visibility = 'visible';
alert('waiting')
}
function DoneWaiting() {
    document.getElementById('imgContributeWait').style.visibility = 'hidden';
alert('hide')
}

function ContributeSHOW()
{
showHideToggle("imgContributeWait")

name=escape(document.contribute.name.value)
email=document.contribute.email.value
subject=escape(document.contribute.subject.value)
town=escape(document.contribute.town.value)

for (var i=0; i < document.contribute.trotter.length; i++)
   {
   if (document.contribute.trotter[i].checked)
      {
      var trotter = document.contribute.trotter[i].value;
      }
   }

message=escape(document.contribute.message.value)
botbash=escape(document.contribute.botbash.value)
ClubName=escape(document.contribute.ClubName.value)

xmlHttpCONTRIBUTE=GetXmlHttpObjectCONTRIBUTE()
if (xmlHttpCONTRIBUTE==null)
 {
alert ("Browser does not support HTTP Request")
return
 }
var url="/BLOCK/AJAX/GETcontribute.php"
url=url+'?name='+name+'&email='+email+'&subject='+subject+'&town='+town+'&trotter='+trotter+'&message='+message+'&botbash='+botbash+'&ClubName='+ClubName
xmlHttpCONTRIBUTE.onreadystatechange=stateChangedCONTRIBUTE
xmlHttpCONTRIBUTE.open("GET",url,true)
xmlHttpCONTRIBUTE.send(null)
}

function stateChangedCONTRIBUTE() 
{ 
if (xmlHttpCONTRIBUTE.readyState==4 || xmlHttpCONTRIBUTE.readyState=='complete')
 { 
document.getElementById('ContributeRESULTS').innerHTML=xmlHttpCONTRIBUTE.responseText
 }
}

function GetXmlHttpObjectCONTRIBUTE()
{ 
var objXMLHttpCONTRIBUTE=null
if (window.XMLHttpRequest)
 {
objXMLHttpCONTRIBUTE=new XMLHttpRequest()
 }
else if (window.ActiveXObject)
 {
objXMLHttpCONTRIBUTE=new ActiveXObject('Microsoft.XMLHTTP')
 }
return objXMLHttpCONTRIBUTE
}

