/*	
*	BEGIN LICENSED SCRIPTS
*	Copyright 2004-2005 Charleste.com <info@charleste.com>
*	License:	You may use the scripts between the BEGIN LICENSED SCRIPTS
*				and the END LICENSED SCRIPTS comment provided you retain
*				the code in between them intact and in its entirety, and
*				you retain the copyright and license statement.
*/

//	bustFrames:	If another site does a framed link to your site, this busts
//				your site out of the frameset.  If this is not a PHP file,
//				then we kick to the index.php file.
function bustFrames(){
	if (top.frames.length!=0){
		top.location=self.document.location;
	}else{
		//	Find the file name
		s = self.document.location + "";
		a = s.split("/");
		s = a.pop() + "";
		if( s == "index.html" || s == "" ){
			a.push( "index.php" );
			s = a.join( "/" );
			//top.location=s;
		}
	}
	return;
}
//	writeDate:	Does a javascript write of the copyright and date last modified
//				for the current page.
function writeDate(){
	document.write( 'Last Modified ' + document.lastModified );
	return;
}
/*
*	END LICENSED SCRIPTS
*/
