function showStaticMapLinks(){document.write('<ul class="linkList">');document.write('<li><a href="http://maps.google.co.uk/maps?f=d&amp;hl=en&amp;geocode=9594086793295140591,50.276516,-3.703073&amp;saddr=Kingsbridge&amp;daddr=Coombe+Park+%4050.276516,+-3.703073&amp;sll=50.276396,-3.74033&amp;sspn=0.048271,0.11673&amp;ie=UTF8&amp;ll=50.276396,-3.740158&amp;spn=0.048271,0.11673&amp;z=13&amp;om=1">View a larger version of this map on Google Maps</a></li>');document.write('<li><a href="directions.php?staticmap=1">View a static version of this map</a></li>');document.write("</ul>")}function contactUs(){if(document.getElementById){var D=document.getElementById("frmContactUs");var B=D.myMsg.value.length;var A=/^.+@.+\..{2,3}$/;var C=/[\(\)\<\>\,\;\:\\\/\"\[\]]/;if(D.myName.value.length==0){alert("Please type your name");D.myName.focus();return false}if((D.myPhone.value.length==0)&&(D.myEmail.value.length==0)){alert("Please type either a phone number or an email address");D.myPhone.focus();return false}else{if((D.myEmail.value.length>0)&&((!A.test(D.myEmail.value))||(D.myEmail.value.match(C)))){alert("Please type a valid email address");D.myEmail.focus();return false}else{if(B>2000){alert("Your message is too long - it must be no longer than 2000 characters.\n\nYour comments are currently "+B+" characters in length.");D.myMsg.focus();return false}else{return true}}}}else{return true}}function sendComments(){if(document.getElementById){var D=document.getElementById("frmComments");var B=D.myComment.value.length;var A=D.stayedMonth;var C=A.options[A.selectedIndex].value;if(D.myName.value.length==0){alert("Please enter your name or initials");D.myName.focus();return false}else{if(C==""){alert("Please select the month in which you stayed at Coombe Park");D.stayedMonth.focus();return false}else{if(D.stayedYear.value.length==0){alert("Please enter the year in which you stayed at Coombe Park");D.stayedYear.focus();return false}else{if((B<3)||(B>500)){alert("Please type comments of between 3 and 500 characters in length.\n\nYour current comments are "+B+" characters in length.");D.myComment.focus();return false}else{return true}}}}}else{return true}}function hideLayers(){if(document.layers){document.layers[0].visibility="hide";document.layers[1].visibility="hide"}}function emptyDIVs(){if(document.all&&!document.getElementById){var A=document.all.tags("div")}else{if((document.getElementById)&&(!document.layers)){var A=document.getElementsByTagName("div")}}if(!document.layers){var C,B=0;while(C=A.item(B++)){if((typeof C.style!="undefined")&&(C.id!="Navigation")&&(C.id!="MainContent")){C.style.display="none";C.innerHTML=""}}}};