
var theref=getCookie("statref");var theurl=getCookie("staturl");var thelpans=getCookie("statlpans");if(theref==null||theref=="")
{theref=document.referrer;if(theref==null||theref=="")
{theref='none';}
document.cookie="statref="+escape(theref)+"; path=/";}
if(theurl==null||theurl=="")
{theurl=location.href;document.cookie="staturl="+escape(theurl)+"; path=/";}
if(thelpans==null||thelpans=="")
{thelpans=isAnswered();document.cookie="statlpans="+escape(thelpans)+"; path=/";}
function isAnswered(){if(typeof hbx.mlc=="undefined"){ans=false;}
else{var a=hbx.mlc;var ans=a.match(/\/.*\/noAns/);if(ans!=null)ans=5;else{ans=a.match(/\/.*\/question/);if(ans!=null)ans=4;else ans=0;}}
return ans;}
function getCookie(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function addsubReferer(value,title){if(isNull(value)||value==0||isNaN(value))return false;title=title.substr(0,50);subref=value.toString()+"@"+escape(title);document.cookie="subref="+escape(subref)+"; path=/";return true;}