/*for the -rate this page- link in the header and footer*/
var custom_var,_sp='%3A\\/\\/',_rp='%3A//',_poE=0.0, _poX=0.0,_sH=screen.height,_d=document,_w=window,_ht=escape(_w.location.href),_hr=_d.referrer,_tm=(new Date()).getTime(),_kp=0,_sW=screen.width;_d.onkeypress=_fK;
function _fK(_e){
    if(!_e)_e=_w.event;
    var _k=(typeof _e.which=='number')?_e.which:_e.keyCode;
    if((_kp==15&&_k==12))_w.open('http://www.opinionlab.com/ozone/24-7.asp?referer='+_fC(_ht),'Report','width=370,height=200,resizable=no,copyhistory=no,scrollbars=no');
    _kp=_k;
}

function _fC(_u){
    _aT=_sp+',\\/,\\.,-,_,'+_rp+',%2F,%2E,%2D,%5F';_aA=_aT.split(',');
    for(i=0;i<5;i++){
        eval('_u=_u.replace(/'+_aA[i]+'/g,_aA[i+5])')
    }
    return _u;
}

function O_LC(){
    _w.open('http://ccc01.opinionlab.com/comment_card.asp?time1='+_tm+'&time2='+(new Date()).getTime()+'&prev='+_fC(escape(_hr))+'&referer='+_fC(_ht)+'&height='+_sH+'&width='+_sW+'&custom_var='+custom_var,'comments','width=535,height=192,screenX='+((_sW-535)/2)+',screenY='+((_sH-192)/2)+',top='+((_sH-192)/2)+',left='+((_sW-535)/2)+',resizable=yes,c=no');
}

function _fPe(){
    if(Math.random()>=1.0-_poE){
        O_LC();
        _poX=0.0;
    }
}

function _fPx(){
    if(Math.random()>=1.0-_poX)O_LC();
}

window.onunload=_fPx;

function O_GoT(_p){
    _d.write('<a href=\'javascript:O_LC()\'>'+_p+'</a>');
    _fPe();
}

function gotoSite(thisUrl, thisWidth,thisHeight,thisTop,thisLeft) {
	var url = '/index.cfm?method=home.leavingSite&goToLink=' + thisUrl;
	optionString = ('width=' + thisWidth + ',height=' + thisHeight + ',top=' + thisTop + ',left=' + thisLeft + ',status=no,menubar=no,resizable=no,scrollbars=no');
	mainWin = window.open(url,'goExternal',optionString);
}