<!--// Function for onchange select //-->

function gotopage(page) {
    		 if (page != "") {
        	 	self.location=page
    			}
	}

<!--// Function for image swaps //-->

function SimpleSwap(el,which){
        el.src=el.getAttribute(which||"origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}

<!--// Function for checking availability on booking form //-->

function checkform()
            {
            var BookingIndex = document.BookingForm['BookingInfo'].selectedIndex;
			var BookingValue = document.BookingForm['BookingInfo'].options[BookingIndex].value;

            if (BookingValue == "Unavailable")
             {
                        // something is wrong
                        alert('Unfortunately, the property is already booked on the date you have chosen.  Please choose another date');
                        return false;
            }
            else if (BookingValue == "Choose")
            {
                        // something else is wrong
                        alert('Please choose a date before proceeding');
                        return false;
            }

            // If the script gets this far through all of your fields
            // without problems, it's ok and you can submit the form
            return true;
}

<!--// Print page function for property pages //-->
function printpage() 
		 {
		 window.print();  
		 }
		 
<!--// Show and hide function for equipment list -->

function showhide(id)
		 { 
		 if (document.getElementById){ 
		 	obj = document.getElementById(id); 
				if (obj.style.display == "none"){ 
				    obj.style.display = ""; 
		   		    } else { 
				   	obj.style.display = "none"; 
		 			} 
			   } 
		  } 
		  
<!--// Submit function for email a friend -->
		  
function submitform()
		 {
		  document.EmailForm.submit();
		 }  