function err(msg,obj) {
	alert(msg);
	obj.focus();
	return false;
}
				
function checkForm(frm) {
	if (frm.name.value=="") return err("Please supply a contact name.", frm.name);
	if (frm.email.value=="") return err("Please supply an email address.", frm.email);
	if (frm.telephone.value=="") return err("Please supply a contact telephone number.", frm.telephone);
	if (frm.address.value=="") return err("What is your postal address?", frm.address);
	if (frm.enquiry.value=="") return err("What is your enquiry?", frm.enquiry);
}

$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
    $('html').css('font-size', newFontSize);
    return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
    $('html').css('font-size', newFontSize);
    return false;
  });
  
  // Navigation Class
	//var page = $("body").attr("id");
	//$("#navigation ul li a").load(function(){
	//	//if ($(this).hasClass(page)) {
	//		//$(this).addClass("active");
	//	//	alert(page);
	//	//}
	//	alert("hello");
	//});

  
});
