// switchDivision.js
// Will switch the display of two division (will hide one and unhide the other. second call will toggel the two).
// 05-Jun-2009
// Nitai Fraenkel
// When		Who		What
function switchDivision(division1, division2)
{
        if (document.getElementById)
        {
			var divToSwitch1 = document.getElementById(division1);
			var style1 = divToSwitch1.style;
			var divToSwitch2 = document.getElementById(division2);
			var style2 = divToSwitch2.style;
                if (style1.display == "none"){
					style1.display = "block";
					style2.display = "none";
					return;
                }
                if (style1.display == "block"){
					style1.display = "none";
					style2.display = "block";
					return;
                }
                //style2.display = style2.display? "block":"none";
	}
}
