function stat(sessionStaus) {
	var A_URL = '';
	var thisDomain = '';
	var thisParam = '';
	var thisTitle = '';
	var prePage = '';
	var thisUrl1 = '';
	var thisUrl2 = '';
	var thisFname = '';
	var thisLname = '';
	var thisName = '';

	A_URL = this.document.URL;
	thisDomain = this.document.location.hostname;
	thisPort = (this.document.location.port=="") ? "":":" +this.document.location.port;
	thisName = this.document.location.pathname;
	thisParam = this.document.location.search.replace("?","");
	thisTitle = this.document.title;
	prePage=document.referrer;
    if( thisName.lastIndexOf('/') >= 0 ){
        thisFname = thisName.substring(0, thisName.lastIndexOf('/')+1);
        thisLname = thisName.substring(thisName.lastIndexOf('/')+1,thisName.length);

			if (thisLname == '') {
					thisLname = 'index.jsp';
					thisName = thisName + 'index.jsp';
			}
    }else {
        thisLname = thisName;
    }
//document.write("\n<BR>thisName:"+thisName);
//document.write("\n<BR>thisLname:"+thisLname);
//document.write("\n<BR>thisName:"+thisName);
//document.write("\n<BR>thisParam:"+thisParam);

 //  alert("thisParam:" +thisParam);
//  alert(getCookie("userid"));

	thisLname = thisLname + getValueParam(thisParam);
	thisName = thisName + getValueParam(thisParam);
 
/*
*/
	if( (prePage=='undefined')||( prePage == '' )) prePage = 'bookmark' ;


	PRG =  'http://' + thisDomain ;
	PRG +=  thisPort;
	PRG += '/stat/stat.jsp';
	PRG += '?thisDomain=' + escape(thisDomain);
	PRG += '&thisName=' 	+ escape(thisName);
	PRG += '&thisFname=' 	+ escape(thisFname);
	PRG += '&thisLname=' 	+ escape(thisLname);
	PRG += '&thisParam=' 	+ escape(thisParam);
	PRG += '&thisTitle=' 	+ escape(thisTitle);
	PRG += '&prePage=' + prePage;
	PRG += '&sessionStaus=' + sessionStaus;
//	PRG += '&userid=' + getCookie("userid");
	PRG += '&';

//	alert(PRG);
//	document.write(PRG);
	document.write('<div name="stat" display="none"><img src="' + PRG + '" border=0 width=0 height=0></div>' );
//	return(PRG);
}

function getValueParam(param) {
    var params=param.split("&");
    var rParam = "";
    for (var i=0; i<params.length; i++) {
//alert(params[i].split("=")[0]);
        if((params[i].split("=")[0])=='temp'){
          rParam +=  ((rParam.indexOf('?')) ? "?":"&") + params[i];
//alert(rParam);
        }
        else if((params[i].split("=")[0])=='b_class_code'){
          rParam +=  ((rParam.indexOf('?')) ? "?":"&") + params[i];
        }
       else if((params[i].split("=")[0])=='name'){
          rParam +=  ((rParam.indexOf('?')) ? "?":"&") + params[i];
        }
    }
    return rParam;
}
