function emailpage() {
// go to email page
window.location.href = "/System/EMail/EmailFriend.php?CurrURL="+window.location.href;

}

function goToURL($theURL){
// redirect page
window.location.href = $theURL;	
}
