// check if they are registered.  if not, check if this is their 
// third search.  if so, make them register.
var today=new Date();
var expire=new Date();
expire.setTime(today.getTime()+60*60*24*365*10*1000); // 10 years

function chkRegister(){
    // check if already registered
    var reg=getCookie('registered');
    if(reg=='yes') return(true);
    
    // check for searches cookie
    var srch=parseInt(getCookie('searches'));
    if(isNaN(srch)) srch=0;
    if(srch<5){
        setCookie('searches', ++srch, expire, '/'); 
        return(true);
    }
    
    // they need to register
    $('a.example7').click();

    return(false);
}
