function PresentBookmarkOpportunity(){document.writeln('<p class=normal>Bookmark this page:&nbsp;');if (window.sidebar){document.writeln("<a href=\"javascript:window.sidebar.addPanel(document.title, document.URL,\"\"); \" title=\"Add to browser Favourites\"><img border=\"0\" src=\"http://shared.burghhouse.com/addtofavourites.gif\" alt=\"Add To Browser Favourites\"><\/a>")}else if( window.external ){document.writeln("<a href=\"javascript:window.external.AddFavorite(document.URL,document.title); \" title=\"Add to browser Favourites\"><img border=\"0\" src=\"http://shared.burghhouse.com/addtofavourites.gif\" alt=\"Add To Browser Favourites\"><\/a>")};document.writeln('<a href=\"http://delicious.com/save\" onclick=\"window.open(\'http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=\'+encodeURIComponent(document.URL)+\'&amp;title=\'+encodeURIComponent(document.title), \'delicious\',\'toolbar=no,width=550,height=550\'); return false;\" rel=nofollow><img border=\"0\" src=\"http://shared.burghhouse.com/deliciousicon.gif\" height=\"12\" width=\"12\" alt=\"delicious.com\"><\/a>&nbsp;');document.writeln("<a href=\"http://www.facebook.com/share.php?u="+encodeURIComponent(document.URL)+"\" target=\"_blank\" title=\"Facebook.com\"><img border=\"0\" src=\"http://shared.burghhouse.com/facebookicon.gif\" alt=\"Facebook\"><\/a> ");document.writeln("<a href=\"http://www.technorati.com/faves?add="+encodeURIComponent(document.URL)+"\" target=\"_blank\" title=\"Technorati.com\"><img border=\"0\" src=\"http://shared.burghhouse.com/technoratiicon.gif\" alt=\"Technorati\"><\/a> ");document.writeln("<a href=\"http://www.stumbleupon.com/submit?url="+encodeURIComponent(document.URL)+"\" target=\"_blank\" title=\"StumbleUpon.com\"><img border=\"0\" src=\"http://shared.burghhouse.com/stumbleuponicon.gif\" alt=\"StumbleUpon\"><\/a> ");document.writeln("<a href=\"http://digg.com/submit?phase=2&amp;url="+encodeURIComponent(document.URL)+"\" target=\"_blank\" title=\"Digg.com\"><img border=\"0\" src=\"http://shared.burghhouse.com/diggicon.gif\" alt=\"Digg\"><\/a> ");document.writeln("<a href=\"http://www.reddit.com/submit?url="+encodeURIComponent(document.URL)+"\" target=\"_blank\"><img src=\"http://shared.burghhouse.com/reddit.gif\" alt=\"Reddit\" border=\"0\" /><\/a>");document.writeln("<script type=\"text/javascript\">var addthis_pub=\"burghhouse\";<\/script>");document.writeln("<a href=\"http://www.addthis.com/bookmark.php\" onmouseover=\"return addthis_open(this, '', document.URL, document.title)\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"http://s7.addthis.com/static/btn/sm-plus.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Bookmark and Share\" style=\"border:0\"><\/a>");document.writeln("<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/152/addthis_widget.js\"><\/script>");document.writeln('<\/p>');return false};function doHolyDayAlert(){var HolyDayName = new Array();var HolyDayMonth = new Array();var HolyDayDay = new Array();HolyDayName[01] ='Feast of Naw-R%FAz'; HolyDayMonth[01] = 02; HolyDayDay[01] = 21;HolyDayName[02] ='First day of Ridv%E1n'; HolyDayMonth[02] = 03; HolyDayDay[02] = 21;HolyDayName[03] ='Ninth day of Ridv%E1n'; HolyDayMonth[03] = 03; HolyDayDay[03] = 29;HolyDayName[04] ='Twelfth day of Ridv%E1n'; HolyDayMonth[04] = 04; HolyDayDay[04] = 04;HolyDayName[05] ='Declaration of the B%E1b'; HolyDayMonth[05] = 04; HolyDayDay[05] = 23;HolyDayName[06] ='Ascension of Bah%E1%27%FAll%E1h'; HolyDayMonth[06] = 04; HolyDayDay[06] = 29;HolyDayName[07] ='Martyrdom of the B%E1b'; HolyDayMonth[07] = 06; HolyDayDay[07] = 09;HolyDayName[08] ='Birth of the B%E1b'; HolyDayMonth[08] = 09; HolyDayDay[08] = 20;HolyDayName[09] ='Birth of of Bah%E1%27%FAll%E1h'; HolyDayMonth[09] = 10; HolyDayDay[09] = 12;var dateUser = new Date();var dateGMT = new Date(dateUser.getUTCFullYear(), dateUser.getUTCMonth(), dateUser.getUTCDate(), dateUser.getUTCHours(), dateUser.getUTCMinutes(), dateUser.getUTCSeconds());var userDayGMT = dateGMT.getDate();var userHoursGMT = dateGMT.getHours();if ( userHoursGMT >= 18 ){userDayGMT++};var userMonthGMT = dateGMT.getMonth();var endHolyDay = new Date(dateGMT.getFullYear(), userMonthGMT, userDayGMT, 18, 0, 0, 0);for (HolyDayIX=1; HolyDayIX<10; HolyDayIX++){if (HolyDayMonth[HolyDayIX] == userMonthGMT){if (HolyDayDay[HolyDayIX] == userDayGMT){document.write(unescape('<div class=center><table cellpadding=\"10\"><tr><td width=\"20%\">&nbsp;<\/td><td style=\"border: thin solid #339933; \"><em><u>PLEASE NOTE<\/u><\/em>:<br>In St. Helena it is '+dateGMT.toLocaleString()+' and we are observing the Bah%E1%27i Holy Day \"'+HolyDayName[HolyDayIX]+'\" until '+endHolyDay.toLocaleString()+' (our time).<br>During HolyDays Bah%E1%27is do not work so if you wish to discuss business we ask that you call after the Holy Day has ended.<br>To learn more about Bah%E1%27i Holy Days please see <a href=\"http://www.bahai.org/\" target=\"_blank\" title=\"www.bahai.org&nbsp;&bull;&nbsp;opens in a new window or tab\">www.bahai.org<\/a>.<\/td><td width=\"20%\">&nbsp;<\/td><\/tr><\/table><\/div>'))}}}};var SecurityStringAlpha ="";var SecurityStringDigits ="";var SecurityStringAll ="";var SecurityStringSelected ="";var SetupSecurityCodeLen = 5;function SetupSecurityCode(){var result = GenerateSecurityString();if (SecurityStringDigits.length < SecurityStringAlpha.length){ToFoilSpammersMsg.innerText ="Please enter just the DIGITS from the following: "+SecurityStringAll;SecurityStringSelected = SecurityStringDigits}else{ToFoilSpammersMsg.innerText ="Please enter just the NON-DIGITS from the following: "+SecurityStringAll;SecurityStringSelected = SecurityStringAlpha};return true};function GenerateSecurityString(){var CharNum = 0;SecurityStringAlpha ="";SecurityStringDigits ="";SecurityStringAll ="";SecurityStringSelected ="";while ((SecurityStringAlpha.length < SetupSecurityCodeLen) || (SecurityStringDigits.length < SetupSecurityCodeLen)){if (Math.random() < 0.5){CharNum = Math.round(Math.random()*7)+50;SecurityStringDigits += String.fromCharCode(CharNum)}else{do{CharNum = Math.round(Math.random()*26)+65}while ((CharNum == 64) || (CharNum == 73) || (CharNum == 79) || (CharNum == 91));SecurityStringAlpha += String.fromCharCode(CharNum)};SecurityStringAll += String.fromCharCode(CharNum)+' '};return true};function Reset(){document.emailform.elements[1].value ="";document.emailform.elements[2].value ="";document.emailform.elements[1].focus();SetupSecurityCode()};function submitForm(){if (isValidEntry()){if (confirm("Your message is:\n"+document.emailform.elements[1].value+"\nOK to send?")){return true}else{return false}}else{return false}};function isValidEntry(){var str = document.emailform.elements[1].value;while (str.charAt(0) ==" "){str = str.slice(1)};document.emailform.elements[1].value = str;if (str ==""){alert("The message field is blank.\nPlease enter your message.");document.emailform.elements[1].focus();return false}else{if (document.emailform.elements[2].value.toUpperCase() != SecurityStringSelected.toUpperCase()){alert("The security code was not correct.\nPlease try again.");document.emailform.elements[2].value ='';document.emailform.elements[2].focus();return false}else{return true}}};// Copyright (c) Burgh House Limited 2010 all rights reserved
