var hostname,hrefstr, pos, parastr, target,urlInfo;
hostname=document.referrer;
if(hostname==null || hostname=="")
{
hostname = window.location.href;
}
hostname=hostname.replace("http://","")
hrefstr = window.location.href;
pos = hrefstr.indexOf("?");
parastr = hrefstr.substring(pos + 1);
if (pos > 0) {
urlInfo='&e=' + parastr + '&p=' + hostname;
} else {
urlInfo= '&e=' + hostname + '&p=' + hostname;
}
openZoosUrl('fchatwin',urlInfo);