// Common Javascript

function expandDiv(collapsedDiv, expandedDiv, flag) {
	if(flag == true) {
		document.getElementById(collapsedDiv).style.display = 'none';
		document.getElementById(expandedDiv).style.display = 'block';
	}
	
	else {
		document.getElementById(collapsedDiv).style.display = 'block';
		document.getElementById(expandedDiv).style.display = 'none';
	}
}

function expandForm(expandingDiv) {
	// Expand
	document.getElementById(expandingDiv).style.display = 'block';
}

/*
* jQuery
******************************************/

if(typeof jQuery != 'undefined') { // check if jQuery is loaded
$(function() {

	// Element with class 'showBox' toggles element 'hiddenBox' on or off
	$('.showBox').click(function() {
		$('.hiddenBox').slideToggle('normal');
		return false;
	});
	
	// Print button
	$('.goPrint').click(function() {
		$(window).print();
		return false;
	});
		   
});
}