var urlAddress = location.href; 

function addToFavorites(){
if (window.sidebar) // firefox
	window.sidebar.addPanel(pageName, urlAddress, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',urlAddress);
	elem.setAttribute('title',pageName);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(window.external)// ie
	window.external.AddFavorite(urlAddress, pageName);
}
 
function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title + " service";
mail_str += "&body=I thought you might be interested in the " + document.title + " service.%0A%0A";
mail_str += "You can view it at, " + location.href; 
location.href = mail_str;
}

function planning()
{
mail_str = "mailto:events@whoswaiting.com.au?subject=I'm planning an event ";
mail_str += "&body=I am interested in your " + document.title + " services. %0A%0ACould you please contact me by return mail, or I can be reached by phone on ...%0A%0A%0AThank You"
location.href = mail_str;
}

function subscribe()
{
mail_str = "mailto:subscribe@whoswaiting.com.au?subject=Please add me to the who's waiting subscription service ";
mail_str += "&body=I am interested in your " + document.title + " services";
location.href = mail_str;
}

function unsubscribe()
{
mail_str = "mailto:subscribe@whoswaiting.com.au?subject=Please remove me from the who's waiting subscription service ";
location.href = mail_str;
}

