function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

/*anti-spam*/
function writeEMail(pLinkText, pSubject)
{
var v2="NVZRYTQYF2WIPH5S3GIN8IUSYD3";var v7=unescape("%243%3B%3Ct-%27%3C5%1C%3F%3C4%27%5B%13%5E%26.%3EP%26%21%3Cw%27R");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4)^v7.charCodeAt(v4));
}
document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject='+escape(pSubject)+'\'">'+pLinkText+'</a>');
}