/* contact-usAjax.js - ajax functions (JS) */

function _draw(rawResponse)
{
  var response = rawResponse.responseText;
  var responseArr = response.split("~");

  alert(response);
}

//function _sendEmail(rawResponse)
//{
//  var response = rawResponse.responseText;
//  var field = "";
//
//  $('waiting').setStyle({display: 'none'});;
//
//  if (response == ""){
//    alert("Your details have been successfully sent.\n\nWe will send you an email confirming the details you have\nsubmitted and we will be in touch as soon as possible\n- thank you.\n\n");
//
//  }else{
//    alert("Your details could not be sent because:\n\n" + response + "\nPlease correct these details and click on the \"Submit details\" button\n- thank you.\n\n");
//  }
//
//  // Clear fields
//  if (response == ""){
//    $$('.val').each(function(field){
//      var fieldID = $(field).id;
//      if (fieldID != "salutation"){
//        $(fieldID).value = "";
//      }
//    });
//  }
//  
//  apsolvaShow($('submit_button'), "inline");  
//  initLoad();
//}

