<!--
function closeCat() {
	var caller = window.opener.document.forms[0].caller.value;
	var catName = document.forms[0].catName.value;
	var area = window.opener.document.forms[0].functionalarea.options[window.opener.document.forms[0].functionalarea.selectedIndex].value;
	var origin = window.opener.document.forms[0].origin.options[window.opener.document.forms[0].origin.selectedIndex].value;
	var month = window.opener.document.forms[0].month.options[window.opener.document.forms[0].month.selectedIndex].value;
	var day = window.opener.document.forms[0].day.options[window.opener.document.forms[0].day.selectedIndex].value;
	var year = window.opener.document.forms[0].year.options[window.opener.document.forms[0].year.selectedIndex].value;
	var aLevel = window.opener.document.forms[0].accessLvl.options[window.opener.document.forms[0].accessLvl.selectedIndex].value;
	var incident = window.opener.document.forms[0].incident.value;
	var logData = window.opener.document.forms[0].logData.value;
	var formType = document.forms[0].add.value;
	if(formType=="origin") {
		
		//alert("This is an origin Form");
	}
	else {
		//alert("This is an area form");
	}
	window.opener.location.reload();
	var i=0;
	if(!setTimeout("checkLoad()",1)) {
		i++
	}
	alert(i);
}
function getVal() {
	alert(window.opener.document.forms[0].caller.value);
}
function checkLoad() {
	if(window.opener.document.forms[0].caller) {
		return true;
	}
	else {
		return false;
	}
}
function checkForm( frm1 ) {
	totErr=0;
	error="This form could not be submitted due to the problems listed below:\n\n";
	if(document.forms[0].incident.value=="") {
		totErr++;
		error+="\t"+totErr+") No Incident Description\n";
	}
	if(document.forms[0].origin.options[document.forms[0].origin.selectedIndex].value=="null") {
		totErr++;
		error+="\t"+totErr+") No Origin was selected\n";
	}
	if(document.forms[0].functionalarea.options[document.forms[0].functionalarea.selectedIndex].value=="null") {
		totErr++;
		error+="\t"+totErr+") No Area of Concern was selected\n";
	}
	if(document.forms[0].logData.value=="") {
		totErr++;
		error+="\t"+totErr+") No Log information was entered\n";
	}
	if(totErr>0) {
		error+="\nPlease correct these fields and submit this form again.";
		alert(error);
		return false;
	}
	else {
		return true;
	}
	return false;
}
function checkEntryForm( frm1 ) {
	totErr=0;
	var confErr1;
	var confErr2;
	error="This form could not be submitted due to the problems listed below:\n\n";
	if(document.forms[0].accessLvl.options[document.forms[0].accessLvl.selectedIndex].value=="1") {
		confErr1=confirm("Do you want to set the access level to Public?");
	}
	if(document.forms[0].closeInc[0].checked) {
		if(document.fors[0].closeIncDef.value=="yes") {
			confErr2=confirm("Are you sure you want to close this incident?");
		}
		else {
			confErr2=true;
		}
	}
	if(document.forms[0].logData.value=="" && document.forms[0].closeInc[1].checked && document.forms[0].accessLvl.options[document.forms[0].accessLvl.selectedIndex].value == document.forms[0].curAccess.value) {
		if(document.fors[0].closeIncDef.value=="yes") {
			totErr++;
			error+="\t"+totErr+") No Log information was entered\n";
		}
	}
	if(totErr>0) {
		error+="\nPlease correct these fields and submit this form again.";
		alert(error);
		return false;
	}
	else if(confErr1==false || confErr2==false) {
		return false;
	}
	else {
		return true;
	}
	
	return false;
}
function changeFontSize(incVal) {
	for(i=0; i<document.styleSheets[0].rules.length; i++) {
		var curSize=parseInt(document.styleSheets[0].rules[i].style.fontSize);
		if(curSize<=14 && incVal>0) {
			curSize+=incVal;
		}
		if(curSize>=9 && incVal<0) {
			curSize+=incVal;
		}
		document.styleSheets[0].rules[i].style.fontSize=curSize+"pt";
	}
}
//-->