onerror=handleErr;
function handleErr(msg,url,l) {
return true;
}

var subjLink;

function showHide(subj) {
index=subj.slice(1);
if (subjDisplay[index-1]==false) {showSubj(subj);}
else {hideSubj(subj);}
}

function showSubj(subj) {

index=subj.slice(1);
document.getElementById(subj).style.display="block";
subjLink='sbtn'+index;
document.getElementById(subjLink).style.background="url('../../img/common/minus.gif') 5px no-repeat";
subjDisplay[index-1]=true;
if (!subjPage) {document.getElementById('rightcol').style.marginBottom="10px";}
for (var i=0;i<(subjects.length);i++) {
 if (subjDisplay[i]==false) {return;}
}
if (controls) {
 document.getElementById('allsubjtop').style.display="none";
 document.getElementById('allsubjbot').style.display="none";
 document.getElementById('nosubjtop').style.display="inline";
 document.getElementById('nosubjbot').style.display="inline";
}
}

function hideSubj(subj) {
index=subj.slice(1);
document.getElementById(subj).style.display="none";
subjLink='sbtn'+index;
document.getElementById(subjLink).style.background="url('../../img/common/plus.gif') 5px no-repeat";
subjDisplay[index-1]=false;
for (var i=0;i<(subjects.length);i++) {
 if (subjDisplay[i]==true) {return;}
}
if (!subjPage) {document.getElementById('rightcol').style.marginBottom="0px";}
if (controls) {
 document.getElementById('allsubjtop').style.display="inline";
 document.getElementById('allsubjbot').style.display="inline";
 document.getElementById('nosubjtop').style.display="none";
 document.getElementById('nosubjbot').style.display="none";
}
}

function allSubj() {
for (var i=0;i<(subjects.length);i++) {
 document.getElementById(subjects[i]).style.display="block";
 document.getElementById('sbtn'+subjects[i].slice(1)).style.background="url('../../img/common/minus.gif') 5px no-repeat";
 subjDisplay[i]=true;
 }
if (!subjPage) {document.getElementById('rightcol').style.marginBottom="10px";}
if (controls) {
 document.getElementById('allsubjtop').style.display="none";
 document.getElementById('allsubjbot').style.display="none";
 document.getElementById('nosubjtop').style.display="inline";
 document.getElementById('nosubjbot').style.display="inline";
}
}

function noSubj() {
for (var i=0;i<(subjects.length);i++) {
 document.getElementById(subjects[i]).style.display="none";
 document.getElementById('sbtn'+subjects[i].slice(1)).style.background="url('../../img/common/plus.gif') 5px no-repeat";
 subjDisplay[i]=false;
 }
if (!subjPage) {document.getElementById('rightcol').style.marginBottom="0";}
if (controls) {
 document.getElementById('allsubjtop').style.display="inline";
 document.getElementById('allsubjbot').style.display="inline";
 document.getElementById('nosubjtop').style.display="none";
 document.getElementById('nosubjbot').style.display="none";
}
}