// Harlyn Sands Caravan JavaScript Document //


// start email a friend //

function mailpage()
{
mail_str = "mailto:?subject=Portmellon Cove Guest House in Cornwall " //+ document.title // took this out until I correct the title
;
mail_str += "&body=I thought you might be interested in staying at this really nice guest house in Cornwall " //+ document.title
;
mail_str += ". You can view all details at, " + location.href;
location.href = mail_str;
}

// end email a friend //

//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//---------------   END LOCALIZEABLE   ---------------

// start email a friend //

function mailpage()
{
mail_str = "mailto:?subject= Harlyn Sands Caravan " //+ document.title // took this out until I correct the title
;
mail_str += "&body=I thought you might be interested in this brand new caravan on Harlyn Sands Caravan Park near Padstow in Cornwall  " //+ document.title
;
mail_str += "&body=You can view all details at, " //+ document.title
;
mail_str += "  " + location.href;
location.href = mail_str;
}

// end email a friend //


/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}