// <SCRIPT LANGUAGE+"javascript">
// Apparently MAC's like javascript files to start with this

/*=============================================================
/	Function:	 FrameBuster()
/	Called by: 
/	Details:	 Simple script preventing other sites displaying this
/			 page inside their own frames.  If a site provides a
/			 link to your page and then displays it inside one of
/			 its frames, use this script to 'burst out'.
/	Author:		 Gordon McComb (HomeSite)
/	Modified:
===============================================================*/
function FrameBuster()
{
	// <script language="JavaScript" type="text/javascript">
	setTimeout ("changePage()", 3000);

	function changePage() {
		if (self.parent.frames.length != 0)
			self.parent.location=document.location;
	}
}



// <SCRIPT LANGUAGE+"javascript">
/*=============================================================
/	Function:	 sendmail('address', 'subject', 'type')
/	Called by:	
/	Details:	 This function is to be used inside the HREF tag to
/            simulate the mailto: code, but includes the subject option.
/  [address] first part of email address, the text up to @ symbol.
/  [type]    middle part of email address, the text between '@' and '.'
/  [subject] remainder of email address.
/            either 'co.uk'
/            or     'co.uk?subject=subject&20text
/
/            %20 is hexadecimal code for space character.
/
/            Example:
/            <a href="javascript:sendEmail('staffs.chess','co.uk?subject=County%20feedback','tiscali')">Display text</a>
/            [address] staffs.chess
/            [subject] co.uk?subject=County%20feedback
/            [type]    tiscali
/
/            java converts these blocks into  staffs.chess@tiscali.co.uk?subject=County%20feedback
/
/	Author:		 A Davies 17/8/04
/ Modified:  13/12/04
/===============================================================*/
function sendEmail( name, subject, type ) {
	arg = name.replace('&#0046\;','\02e');
	arg = arg.replace('&#0095\;','\05f');
	arg = arg.replace(' &#0169\; ','\040');
	location.href = 'mailto:' + arg + '@' + type + '.' + subject;
}
// </SCRIPT>


