//      htmlbox.js
//      
//      Copyright 2012 Francesco Ruvolo <ruvolof@gmail.com>
//      
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//      
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//
//		HOW TO USE IT
//		You have to include this file in your pages together with htmlbox.css file.
//		Check the htmlbox.html (well commented) file to learn how to use these functions.
      
var previous_box = null;

function showBox(box_id) {
    previous_box = box_id;
	document.getElementById("htmlboxBG").style.display="block";
	document.getElementById("htmlbox_"+box_id).style.display="block";
}

function closeBox(box_id) {
    document.getElementById("htmlboxBG").style.display="none";
	document.getElementById("htmlbox_"+box_id).style.display="none";
    previous_box = null;
}