// COPYRIGHT 2003 - LogixMedia.
function OPTDependants(objForm) {
	ShowHideLayer("ADDDependants",1,objForm.Dependants[0].checked);
}
function OPTRelatives(objForm) {
	ShowHideLayer("ADDRelatives",1,objForm.RelativeSpon[0].checked);
}
function OPTChildren(objForm) {
	ShowHideLayer("ADDChildren",2,objForm.Children[0].checked);
}
function OPTChildrenInfo(objForm) {
	ShowHideLayer("ADDChildInfo",3,objForm.AustChild[0].checked);
}
function ShowHideLayer(sBlockID,nTotalIDs,objCheckbox) {
	var sLayerID=new Array(nTotalIDs);
	if (objCheckbox == true) {sWhichMode="block";} else {sWhichMode="none";}
	for (var A=1; A <= nTotalIDs; A++) {
		sLayerID[A]=GetElement(sBlockID+A);
		sLayerID[A].style.display = sWhichMode;
	}
}
function GetElement(objBlockID) {
	if(document.getElementById) {sElementID = document.getElementById(objBlockID);}
	if(document.all) {sElementID = document.all[objBlockID];}
	return(sElementID);
}
function RequestDataA(objCheckbox,sAlertMsg) {
	if (objCheckbox[0].checked == false && objCheckbox[1].checked == false) {
		alert(sAlertMsg);
		objCheckbox[0].focus();
		return true;
	} else {return false;}
}
function RequestDataB(objCheckbox,sAlertMsg,sValue) {
	if (objCheckbox.value == sValue) {
		alert(sAlertMsg);
		objCheckbox.focus();
		return true;
	} else {return false;}
}
