//<SCRIPT TYPE="text/javascript">
<!-- Begin to hide script contents from old browsers.
//---------------------------------------------------------------------------
function CheckForCookiesEnabled(onErrorPageUrl)
{
var cookieEnabled = (navigator.cookieEnabled) ? true : false

	//if not IE4+ nor NS6+
	if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled){ 
		document.cookie = "testcookie"
		cookieEnabled = (document.cookie == "testcookie" ) ? true : false
		document.cookie = "" //erase dummy value
	}

	if (!cookieEnabled) //if cookies are not enabled on client's browser
		self.location.replace(onErrorPageUrl)
}
//---------------------------------------------------------------------------
function SendMailTo(name)
{
var url = "mailto:";
function Addr( name, addrName, addrHost)
{
		this.name = name;
		this.addrName = addrName;
		this.addrHost = addrHost;
}
var addrs = new Array (
	new Addr( 'hofi', 'hofi', 'fw.hu'),
	new Addr( 'bates', 'a_bates', 'hotmail.com'),
	new Addr( 'bubb', 'bubb.ferenc', 'kalendart.hu'),
	new Addr( 'masa', 'matti', 'antti.la'),
	new Addr( 'dgbarabash', 'dgbarabash', 'i.am'),
	new Addr( 'tmssoft', 'info', 'tmssoftware.com')
	
);
var i = 0;
var found = false; 

	while (!found && i < addrs.length){
		if (addrs[i].name == name)
			found = true;
		else
			i++;
	}
	if (found)
		url += addrs[i].addrName + '@' + addrs[i].addrHost;
	window.open( url, '_self', '');
	return true;
}
//---------------------------------------------------------------------------
function _OpenDownloadPage( lang, home_dir, from_url, file, cnt_file, ftp)
{
var url = home_dir + '/Download' + lang + '.php?';

	url += 'par1=' + file +'&';
	url += 'par2=' + from_url + '&';
	url += 'par3=' + cnt_file;
	if (ftp)
		url += '&ftp_par=true';
	window.open( url, '_self', '');
	return true;
}
//---------------------------------------------------------------------------
function _CountedPageLoad( lang, home_dir, from_url, file, cnt_file, ftp)
{
var url = home_dir + '/CountedPageLoad' + lang + '.php?';

	url += 'par1=' + file +'&';
	url += 'par2=' + from_url + '&';
	url += 'par3=' + cnt_file;
	window.open( url, '_self', '');
	return true;
}
//---------------------------------------------------------------------------
function OpenDownloadPage( home_dir, from_url, file, cnt_file, ftp)
{
	return _OpenDownloadPage( '', home_dir, from_url, file, cnt_file, ftp)
}
//---------------------------------------------------------------------------
function CountedPageLoad( home_dir, from_url, file, cnt_file, ftp)
{
	return _CountedPageLoad( '', home_dir, from_url, file, cnt_file, ftp)
}
//---------------------------------------------------------------------------
function OpenDownloadPageEn( home_dir, from_url, file, cnt_file, ftp)
{
	return _OpenDownloadPage( 'En', home_dir, from_url, file, cnt_file, ftp)
}
//---------------------------------------------------------------------------
function CountedPageLoadEn( home_dir, from_url, file, cnt_file, ftp)
{
	return _CountedPageLoad( 'En', home_dir, from_url, file, cnt_file, ftp)
}
//---------------------------------------------------------------------------
// End the hiding here. -->
//</SCRIPT>

