// If you are looking for switchview() it's in avg site.

// Toggle text to turn on/off whatever we set to display
// We are allowing header to be toggled on/off
function toggle(targetId) {
	var target = document.getElementById(targetId);
	if (target.style.display == "none"){
		target.style.display="inline";
	} else {
		target.style.display="none";
	}
}

// Toggle image or text to turn on and turn off as we set.
// onclick=("switchdisplay('work','off')");
// We are using +/- for on/off
function switchdisplay (show,mode) {
	var div = document.getElementById(show);
	if (mode == "on") {
		div.style.display="inline";
	} else {
		div.style.display="none";
	}
}

function popPDFup (URL, pagAct, winSiz) {
	this.poppdfup("/" + URL, pagAct, winSiz);
}

// Popup when click on PDF
function poppdfup (URL, pagAct, winSiz) {
	URL = '/files' + URL;
	window.open(URL, pagAct, winSiz);
}

