function linkContainer(id){
    target = id;
    this.init = function(){
        _init()
    };
    function _init(){
    	if(target==undefined){
        container = document;
    	}else{
        container = document.getElementById(target);
      }
        as = container.getElementsByTagName("A");
        for (i = 0; i < as.length; i++) {
            a = as[i];
            var linkto = a.getAttribute("linkto");
            var uri = a.getAttribute("href");
            if (linkto != undefined && linkto != "") {
                a.onclick = function(){
                    return gotoUrl(this.getAttribute("linkto"), this.getAttribute("href"))
                };
            }
        }
    }
    function gotoUrl(id, uri){
        new bkAjaxLoad(id).loadToDiv(uri);
        return false;
    }
}
