function goToWebTrends(where, how){
     var myurl ;
     if(where.indexOf("http:")==-1){
      //need to construct a full url
      try
      {
        myurl = document.location.href
        var temp = myurl.split("/");
        myurl = "";
        for(i=0;i<(temp.length-1);i++){
          myurl+=temp[i]+"/";
        }
        var temp1 = where.split("/");

        if(temp1[0]){

          where = myurl + where

        }else{
          where = "http://" + temp[2];

         for(i=0;i<(temp1.length-1);i++){
           where+=temp1[i]+"/";
         }
          where+=temp1[(temp1.length-1)]
        }

       }catch(e){
        //nothing
       }
      }
        if(typeof(how)!= "undefined" && how==1) document.location.replace(where);
                else if(typeof(how)!= "undefined" && how!=1) how.location.replace(where);
                    else  top.document.location.replace(where);
}
