
	function __xavio_TipFriend(_subject,_body) {
		
		location.href='mailto:?subject='+_subject+'&body='+_body+' '+location.href+'';
	}

	function __xavio_AddFav() {

		if (document.all) {
			window.external.addFavorite( location.href, document.title );
		}
	}

	function __xavio_toTop() {
		
		if (document.all) {
			location.href='#top';
		}
	}

	function __xavio_setHome(element) {
		if (document.all) {
			element.style.behavior='url(#default#homepage)';element.setHomePage(location.href);
		}
	}

	function __xavio_goSearch(p_id,init_var) {

		if(document.all) {
			s_var = s_query.value;
		}
		else
		{
			s_var = document.getElementById('s_query').value;
		}

		if (s_var!=init_var) {
			location.href='?id='+p_id+'&search='+s_var;
		}

	}


	function __xavio_OpenWindow(p_title,p_content,p_heading,p_design) {
		var mywin = window.open('', 'win', 'scrollbars=yes,status=yes,toolbar=yes,menubar=yes,width=500,height=500');

		with (mywin.document) {
			open('text/html', 'replace');
			write('<html><head><title>'+p_title+' '+p_heading+'</title><link href="includes/designs/design_'+p_design+'/css/design.css" rel="stylesheet" media="screen" type="text/css"/></head><body class="legal_privacy_body"><div class="legal_privacy_heading">'+p_heading+'</div><div class="legal_privacy_div">'+p_content+'</div></body></html>');
			close();
		}
	}

	function __xavio_siteMap(p_id) {

		location.href='?id='+p_id+'&amp;sitemap=true';

	}


	function __xavioCryptMail(str) {
		text = "";
		i    = 0;
		while (i <= (str.length - 1)) {
			temp = str.substring(i, i+1);
			text = temp + text;
			i++;
		}
		location.href = 'mailto:'+text;
	}
