/**
 *  Fassa Bortolo Componente Ricerche Aperte, version 1.0.0
 *  (c) 2007 Arturo La Monaca -GSSI srl <arturo.lamonaca@gssi.it>
 */
  
function wsm_openCloseRicerca(boxId) {
	var objBox = $("wsm_EPa" + boxId);
	var box = $("wsm_EPb" + boxId);
	if (wsm_defined(box)) {
		box.style.display = (box.opened ? "none" : "block");
		objBox.style.borderBottom  = (box.opened ? "1px #999 dotted" : "none");
		box.opened = (box.opened ? false : true);
		if (box.opened)
			location.href = "#a" + boxId;
	}
} 
