var current = "0";
function workSwitch(id){
	if(!document.getElementById) return false;
	var work = document.getElementById("work"+id);
	var curWork = document.getElementById("work"+current);
	if(current!="0"){
		curWork.style.display = "none";
	}
	if(current==id){
		work.style.display = "none";
		current = "0";
	} else {
		work.style.display = "block";
		current = id;
	}
	var wndo = dw_scrollObj.col['wn'];
	wndo.updateDims();
    var x = wndo.getX();
    var y = wndo.getY();
    if ( wndo.vBarId ) { // set up similarly for hBarId
        var barObj = dw_Slidebar.col[wndo.vBarId];
        dw_Scrollbar_Co.setBarSize(wndo, barObj);
        dw_Scrollbar_Co.updateScrollbar(wndo, x, y);
	}
}