function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

<!-- Prevew sections PopUp Window Opener -->
<!-- var newwindow; -->
<!-- PopUp Window Opener -->
function openNewWindow(URLtoOpen,windowName,height,width)
{
windowFeatures ="menubar=no,scrollbars=yes,location=no,favorites=no,resizable=yes,status=no,toolbar=no,directories=no";
var test = "'"; 
winLeft = (screen.width-width)/2; 
winTop = (screen.height-(height+110))/2; 
myWin= open(URLtoOpen,windowName,"width=" + width +",height=" + height + ",left=" + winLeft + ",top=" + winTop + test + windowFeatures + test);
if (window.focus) {myWin.focus()}
}

<!-- Open PopUp Window in full screen -->
function openNewWindowFull(URLtoOpen,windowName)
{
myWin= open(URLtoOpen,windowName,'menu=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes');
document.write('<center><br>If you see this page but did not get to IDL registration or login page, you will need to disable you popup blocker.<br><br>It is required that you disable popup blocker and enable javascript on your browser to enable some functionalities. <br><br>Click Back button of your browser or<br> Go back to <a href="http://www.epecidl.net" target="_self">http://www.epecidl.net</a></center>');
}
function openNewWindowResize(URLtoOpen,windowName,height,width)
{
if (window.showModalDialog) {
window.showModalDialog(URLtoOpen,windowName,"dialogWidth:" + width + "px;dialogHeight:" + height + "px;edge:sunken;scroll:yes;resizable:yes;status:no;center:yes");
} else {
windowFeatures ="menubar=no,scrollbars=yes,location=no,favorites=no,resizable=yes,status=no,toolbar=no,directories=no";
var test = "'"; 
winLeft = (screen.width-width)/2; 
winTop = (screen.height-(height+110))/2; 
newwindow=window.open(URLtoOpen,windowName,"width=" + width +",height=" + height + ",left=" + winLeft + ",top=" + winTop + test + windowFeatures + test);
if (window.focus) {newwindow.focus()}
}
}
function openNewWindowNoResize(URLtoOpen,windowName,height,width)
{
if (window.showModalDialog) {
window.showModalDialog(URLtoOpen,windowName,"dialogWidth:" + width + "px;dialogHeight:" + height + "px;edge:sunken;scroll:no;resizable:no;status:no;center:yes");
} else {
windowFeatures ="menubar=no,scrollbars=no,location=no,favorites=no,resizable=no,status=no,toolbar=no,directories=no";
var test = "'"; 
winLeft = (screen.width-width)/2; 
winTop = (screen.height-(height+110))/2; 
newwindow=window.open(URLtoOpen,windowName,"width=" + width +",height=" + height + ",left=" + winLeft + ",top=" + winTop + test + windowFeatures + test);
if (window.focus) {newwindow.focus()}
}
}
<!-- External Video Player in Modal Window -->
function modalWin(myplayer, width, height) {
windowFeatures ="toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes ,modal=yes";
if (window.showModalDialog) {
window.showModalDialog(myplayer,"EPEC-Video",
"dialogWidth:" + width + "px;dialogHeight:" + height + "px;edge:sunken;scroll:no;resizable:no;status:no");
} else {
window.open(myplayer,'EPEC-Video',
'height=' + height + ',width=' + width + ',' + windowFeatures);
}
} 
<!-- External Video Player -->
function ExternalPlayer(player, videofile,windowName,height,width)
{
var playernum
var s1 = new SWFObject("flvplayer.swf","single","350","280","7");
	s1.addParam("allowfullscreen","true");
	s1.addVariable("image","images/start.gif");
	s1.addVariable("file","<?php echo $myvideo; ?>");
	s1.addVariable("backcolor","0x000000");
	s1.addVariable("frontcolor","0xCCCCCC");
	s1.addVariable("lightcolor","0xFFFCCC");
	s1.addVariable("overstretch","fit");
	//s1.addVariable("width","300");
	//s1.addVariable("height","250");
	s1.addVariable("autostart","false");
	s1.write("player"+playernum);
}
<!-- Refreshes parent window and cloase the popup -->
function win(){
window.opener.document.location.reload();
self.close();
}
<!-- Change font size -->
<!-- var fontSize = 100; -->
var fontSize = 100;
function FontSizeSet()
{
var el, n = 1;
while (el = document.getElementById('content' + n++))
//while (el = document.getElementById('content'))
el.style.fontSize = fontSize + '%';
return false;
}
function SetFontLarger()
{
if (fontSize < 150) 
fontSize=fontSize+15;
return FontSizeSet();
}

function SetFontSmaller()
{
if (fontSize > 80) 
fontSize=fontSize-15;
return FontSizeSet();
}