// Container for various SbDojoDialog Methods
dojo.declare("SbDojoDialog", null, {
        constructor: function(id, focusElem){
        	if(id == null)
			    throw("SbDojoDialog Constructor parameter id must be non null");
            this.id = id;
            this.focusElem = focusElem;
        },
        toggle:function(){
	        if(dojo.byId(this.id).style.display == "block")
	            this.hide();
	        else
	            this.show();
        },
        show: function(){
        	dojo.byId(this.id).style.display = "block";
        	if (this.focusElem != null)
        		dojo.byId(this.focusElem).focus();
		},
		hide:function(){
			dojo.byId(this.id).style.display = "none";
		}
});