

function EmailSite(LinkText)
{
	var linkinfo = "?SUBJECT=I think you would like this website&BODY=I thought you would find this site interesting: "; 
	var url = location.href; 
	document.write('<A HREF="MAILTO:'+linkinfo+url+'">'+LinkText+'</a>'); 
	//document.write(linkinfo); 
	//document.write(url); 
	//document.write('">'+LinkText+'</a>'); 
	//return 
}

function Popup(page, auto, width, height) 
{
//Popup link in new window. Use:
// <a href="javascript:Popup('http://www.com')";>

	
		//Width & height should be equivalent to 2/3 of the available screen size
		//w= (screen.availWidth/3)*2;
		//h= (screen.availHeight/3)*2;
		
		//Width & height should be equivalent to 3/4 of the available screen size
		w= (screen.availWidth/4)*3;
		h= (screen.availHeight/4)*3;		
		
		//window.alert("Auto: Unrounded - W: " + w + " H: " + h);
		w= Math.round(w);
		h= Math.round(h);
		//window.alert("Rounded - W: " + w + " H: " + h);
if (auto==false) {
	if (w < width){
		w= width
	}

	if (h < height){
		h= height
	}
}


	//New window should be centered
	x = (screen.availWidth-w)/2;
	y = (screen.availHeight-h)/2;

OpenWin = this.open(page, "NewWindow", "height=" + h + ",width=" + w + ",left=" + x +",top=" +y +",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");

}