/* //http://www.sitepoint.com/article/standards-compliant-world */
function externalLinks() 
{
 	if (!document.getElementsByTagName) 
 		return;
 
 	var anchors = document.getElementsByTagName("a");
 	for (var i=0; i<anchors.length; i++) 
 	{
   		var anchor = anchors[i];
   		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
     		anchor.target = "_blank";
 	}
}
window.onload = externalLinks;


/* Author: Rebecca Skeers rebecca@imaginationcorp.com 2005 */
function printPage() 
{
  	if (window.print)
		window.print()
	else
		alert("Sorry, your browser doesn't support the print feature. Use the File menu on your browser to select Print.");
	return false;
}

/* Author: Rebecca Skeers rebecca@imaginationcorp.com 2006 */
function bookmarkPage(url,pageTitle)
{
	if (window.external) 
		window.external.AddFavorite(url,pageTitle) 
	else 
		alert("Sorry, your browser doesn't support the bookmark feature. Use the Bookmarks menu on your browser to add this page.");
}