function strip_characters (title) {
	day = new Date();
	id = day.getTime();
	title = title.replace( /&alpha;/g	, "alpha");
	title = title.replace( /\u03b1/g	, "alpha");
	title = title.replace( /&beta;/g	, "beta");
	title = title.replace( /\u03b2/g	, "beta");
	title = title.replace( /&mdash;/g	, "--");
	title = title.replace( /&#0151;/g	, "--");
	title = title.replace( /&ldquo;/g	, "%27");
	title = title.replace( /&rdquo;/g	, "%27");
	title = title.replace( /&lsquo;/g	, "%27");
	title = title.replace( /&rsquo;/g	, "%27");
	title = title.replace( /\u2014/g	, "--");
	title = title.replace( /\u201d/g	, "%27");
	title = title.replace( /\u201c/g	, "%27");
	title = title.replace( /\u2018/g	, "%27");
	title = title.replace( /\u2019/g	, "%27");
	title = title.replace( /&[^;];/g	, "");
	title = title.replace( /&/g		, "%26");
	title = title.replace( / /g		, "%20");
	title = title.replace( /<[^>]*>/g	, "");

	l = title.length;
	x = 0;
	while ( x < l )
		{
		if (title.charCodeAt(x) > 127)
			title = title.replace( String.fromCharCode(title.charCodeAt(x)), " ");
		x = x + 1;
		}
	return title;
}

function mail_friend(title, link) {
	title = strip_characters(title);
	URL = '/gnn_include/php/mail_friend.php?link=' + link + "&title=" + title;
	window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=470,height=530,left = 50,top = 50');
}

function mail_GNN(title, link) {
	title = strip_characters(title);
	URL = '/gnn_include/php/mail_GNN.php?link=' + link + "&title=" + title;
	window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=470,height=530,left = 50,top = 50');
}

function pf_window() {
	day = new Date();
	id = day.getTime();
	pf_URL = '?print=1';
	window.open(pf_URL, id, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=650,height=510,left = 50,top = 50');
}