function getContact(name,phone,email,capt) {


 // Confirm that the object is usable:
 if (ajax) {

 // Call the PHP script.
 // Use the GET method.
 // Pass the username in the URL.
 ajax.open('get', 'http://www.byobs.com/includes/optIn.php?name=' + encodeURIComponent(name ) +
'&phone=' + encodeURIComponent(phone ) +
'&email=' + encodeURIComponent(email ) +
'&capt=' + encodeURIComponent(capt ) 


);



// Function that handles the response:
 ajax.onreadystatechange = handle_check_contact;

 // Send the request:
 ajax.send(null);

 } else { // Can't use Ajax!
 document.getElementById('subscribeDiv').innerHTML = 'The results will be returned upon submitting this form.';
 }

 }
 
 
 // Function that handles the response from the PHP script:
 function handle_check_contact() {

 // If everything's OK:
 if ( (ajax.readyState == 4) && (ajax.status == 200) ) {

 // Assign the returned value to a document element:
 document.getElementById('subscribeDiv').innerHTML = ajax.responseText;

 }

 } // End of handle_check() function.
