/* the scripting functions for the www.scrapbook.melb.net */

function noSpam(user,domain) {
  locationstring = "mailto:" + user + "@" + domain;
  window.location = locationstring;
}

function validateFeedback(form) {
  if(!form.ContactMessage.value) {
    alert('The message cannot be empty');
    form.ContactMessage.select();
    return false;
  }
  else {
    form.input_send.value = "Sending...";
  	return true;
  }
}

function validateSearch(form) {
  if(!form.SearchKeywords.value) {
    alert('The search query cannot be empty');
    form.SearchKeywords.select();
    return false;
  }
  else {
    form.searchsubmit.value = "Sending...";
  	return true;
  }
}

