function Check(){
  var err="";
  if(document.rform.r_name.value==""){
    err=err+"- your full name\n";
  }
  if(document.rform.r_fromdate.value==""){
    err=err+"- starting date of your stay\n";
  }
  if(document.rform.r_nights.value==""){
    err=err+"- length of your stay\n";
  }
  if(document.rform.r_tel.value==""){
    err=err+"- your telephone number\n";
  }
  if(document.rform.r_email.value==""){
    err=err+"- your email address\n";
  }
  if(err!=""){
    message="Please fill in the following information:\n\n"+err+"\nThank you.";
    alert(message);
    return false;
  }else{
    return true;
  }
}

$(function(){
  $('a').click(function(){$(this).blur();});
  $('ul.tc li a').click(function(){
    var ref = $(this).attr('href');
    $('ul.tc li a').removeClass('active');
    $(this).addClass('active');
    $('.tab').hide();
    $(ref).show();
    return false;
  });
  $('.rform .submit').hover(function(){
    $(this).attr('src','images/res-button-hover.gif');
  },function(){
    $(this).attr('src','images/res-button.gif');
  });
});
