

	function SetVisiblity(ACompName, AVisStatus){
	  document.getElementById(ACompName).style.display=AVisStatus;
	}
	
	function SetRangeActionVisible(){
	SetVisiblity("LowActionFontCallerDiv", "none");
	SetVisiblity("LowRangeTextFontStr", "none");
	SetVisiblity("LowFontColorBtn", "none");

	SetVisiblity("HiActionFontCallerDiv", "none");
	SetVisiblity("HiRangeTextFontStr", "none");
	SetVisiblity("HiFontColorBtn", "none");
	
		if(document.ReportFieldAdvEditPage.LowRangeAction.options[document.ReportFieldAdvEditPage.LowRangeAction.selectedIndex].value=="raSubsText")
			SetVisiblity("LowRangeTextFontStr", "block");
        if(document.ReportFieldAdvEditPage.HiRangeAction.options[document.ReportFieldAdvEditPage.HiRangeAction.selectedIndex].value=="raSubsText")
			SetVisiblity("HiRangeTextFontStr", "block");
		
		if(document.ReportFieldAdvEditPage.LowRangeAction.options[document.ReportFieldAdvEditPage.LowRangeAction.selectedIndex].value=="raChangeFont"){
			SetVisiblity("LowActionFontCallerDiv", "block");
			SetVisiblity("LowFontColorBtn", "block");}
        
        if(document.ReportFieldAdvEditPage.HiRangeAction.options[document.ReportFieldAdvEditPage.HiRangeAction.selectedIndex].value=="raChangeFont"){
			SetVisiblity("HiActionFontCallerDiv", "block");
			SetVisiblity("HIFontColorBtn", "block");}
	}
	      
      function InitializeHiddenVars(){
      SetRangeActionVisible();
        if (document.ReportFieldAdvEditPage.CloseAndExit!=null){
          if (document.ReportFieldAdvEditPage.CloseAndExit.value=="true"){
	    window.close();
	    return;
	  }		 	
        }

        RptFldFontCallerDiv.style.fontFamily=document.ReportFieldAdvEditPage.RptFldFontNames.value;
        RptFldFontCallerDiv.style.fontSize=document.ReportFieldAdvEditPage.RptFldFontSize.value;
        RptFldFontCallerDiv.style.color=document.ReportFieldAdvEditPage.RptFldFontColors.value;
        RptFldFontCallerDiv.style.fontWeight=(document.ReportFieldAdvEditPage.RptFldFontfsBold.value=="True") ? "bold" : "normal";
        RptFldFontCallerDiv.style.textDecoration=(document.ReportFieldAdvEditPage.RptFldFontfsUnderline.value=="True") ? "underline" : "none";
        RptFldFontCallerDiv.style.fontStyle=(document.ReportFieldAdvEditPage.RptFldFontfsItalic.value=="True") ? "italic" : "normal";

        if (document.ReportFieldAdvEditPage.LowRangeFontNames!=null){
        LowActionFontCallerDiv.style.fontFamily=document.ReportFieldAdvEditPage.LowRangeFontNames.value;
        LowActionFontCallerDiv.style.fontSize=document.ReportFieldAdvEditPage.LowRangeFontSize.value;
        LowActionFontCallerDiv.style.color=document.ReportFieldAdvEditPage.LowRangeFontColors.value;
        LowActionFontCallerDiv.style.fontWeight=(document.ReportFieldAdvEditPage.LowRangeFontfsBold.value=="True") ? "bold" : "normal";
        LowActionFontCallerDiv.style.textDecoration=(document.ReportFieldAdvEditPage.LowRangeFontfsUnderline.value=="True") ? "underline" : "none";
        LowActionFontCallerDiv.style.fontStyle=(document.ReportFieldAdvEditPage.LowRangeFontfsItalic.value=="True") ? "italic" : "normal";
	}

        if (document.ReportFieldAdvEditPage.HiRangeFontNames!=null){
        HiActionFontCallerDiv.style.fontFamily=document.ReportFieldAdvEditPage.HiRangeFontNames.value;
        HiActionFontCallerDiv.style.fontSize=document.ReportFieldAdvEditPage.HiRangeFontSize.value;
        HiActionFontCallerDiv.style.color=document.ReportFieldAdvEditPage.HiRangeFontColors.value;
        HiActionFontCallerDiv.style.fontWeight=(document.ReportFieldAdvEditPage.HiRangeFontfsBold.value=="True") ? "bold" : "normal";
        HiActionFontCallerDiv.style.textDecoration=(document.ReportFieldAdvEditPage.HiRangeFontfsUnderline.value=="True") ? "underline" : "none";
        HiActionFontCallerDiv.style.fontStyle=(document.ReportFieldAdvEditPage.HiRangeFontfsItalic.value=="True") ? "italic" : "normal";
	}
      }


      function SetHiddenVars(){
        document.ReportFieldAdvEditPage.RptFldFontNames.value=RptFldFontCallerDiv.style.fontFamily;
        document.ReportFieldAdvEditPage.RptFldFontSize.value=RptFldFontCallerDiv.style.fontSize;
        document.ReportFieldAdvEditPage.RptFldFontColors.value=RptFldFontCallerDiv.style.color;
        document.ReportFieldAdvEditPage.RptFldFontfsBold.value=(RptFldFontCallerDiv.style.fontWeight=="bold") ? "True" : "False";
        document.ReportFieldAdvEditPage.RptFldFontfsUnderline.value=(RptFldFontCallerDiv.style.textDecoration=="underline") ? "True" : "False";
        document.ReportFieldAdvEditPage.RptFldFontfsItalic.value=(RptFldFontCallerDiv.style.fontStyle=="italic") ? "True" : "False";

        if (document.ReportFieldAdvEditPage.LowRangeFontNames!=null){
        document.ReportFieldAdvEditPage.LowRangeFontNames.value=LowActionFontCallerDiv.style.fontFamily;
        document.ReportFieldAdvEditPage.LowRangeFontSize.value=LowActionFontCallerDiv.style.fontSize;
        document.ReportFieldAdvEditPage.LowRangeFontColors.value=LowActionFontCallerDiv.style.color;
        document.ReportFieldAdvEditPage.LowRangeFontfsBold.value=(LowActionFontCallerDiv.style.fontWeight=="bold") ? "True" : "False";
        document.ReportFieldAdvEditPage.LowRangeFontfsUnderline.value=(LowActionFontCallerDiv.style.textDecoration=="underline") ? "True" : "False";
        document.ReportFieldAdvEditPage.LowRangeFontfsItalic.value=(LowActionFontCallerDiv.style.fontStyle=="italic") ? "True" : "False";
	}

        if (document.ReportFieldAdvEditPage.HiRangeFontNames!=null){
        document.ReportFieldAdvEditPage.HiRangeFontNames.value=HiActionFontCallerDiv.style.fontFamily;
        document.ReportFieldAdvEditPage.HiRangeFontSize.value=HiActionFontCallerDiv.style.fontSize;
        document.ReportFieldAdvEditPage.HiRangeFontColors.value=HiActionFontCallerDiv.style.color;
        document.ReportFieldAdvEditPage.HiRangeFontfsBold.value=(HiActionFontCallerDiv.style.fontWeight=="bold") ? "True" : "False";
        document.ReportFieldAdvEditPage.HiRangeFontfsUnderline.value=(HiActionFontCallerDiv.style.textDecoration=="underline") ? "True" : "False";
        document.ReportFieldAdvEditPage.HiRangeFontfsItalic.value=(HiActionFontCallerDiv.style.fontStyle=="italic") ? "True" : "False";
	}
      }
