//JavaScript/RuleFunctions.inc T=464 function CF(E,f,i){var F=null;var n="FieldID:"+f+"."+i;if(typeof(E[n+"=LONG"])!="undefined"){F=E[n+"=LONG"];if(typeof(F.options)!="undefined"&&F.options.length){F.options[0].value="0";F.selectedIndex=0;}else{F.value="0";}}else if(typeof(E[n+"=RGB"])!="undefined"){F=E[n+"=RGB"];F.value="0";}else if(typeof(E[n+"=DURATION"])!="undefined"){F=E[n+"=DURATION"];F.value="0";}else if(typeof(E[n+"=DATE"])!="undefined"){F=E[n+"=DATE"];F.value="0";}else if(typeof(E[n+"=DATEEND"])!="undefined"){F=E[n+"=DATEEND"];}else if(typeof(E[n+"=STRING"])!="undefined"){F=E[n+"=STRING"];F.value="";}else if(typeof(E[n+"=LITERALSTRING"])!="undefined"){F=E[n+"=LITERALSTRING"];F.name=n+"=STRING";F.value="";}else if(typeof(E[n+"=TEXT"])!="undefined"){F=E[n+"=TEXT"];F.name=n+"=STRING";F.value="";}return (F!=null);}function CC(i,r,s){var E=document.forms['MainForm'].elements;var R=E["FieldID:6002=LONG"];var v=0;var f=13811;if(typeof(E["FieldID:13810."+i+"=LONG"])!="undefined"){v=parseInt(E["FieldID:13810."+i+"=LONG"].options[E["FieldID:13810."+i+"=LONG"].selectedIndex].value);}CF(E,13806,i);for(f=13811;f<13820;f++){CF(E,f,i);}if(r==1&&v<6||v>11){R.value=""+(parseInt(R.value)-1);}else if(r==0&&v>=6&&v<=11){R.value=""+(parseInt(R.value)+1);}CCP(i,s);}function CCP(i,s){var E=document.forms["MainForm"].elements;for(var f=13821;f<13830;f++){CF(E,f,i);}if(s){TS(4100);}}function CAP(i,s){var E=document.forms["MainForm"].elements;for(var f=13831;f<13845;f++){CF(E,f,i);}if(s){TS(4101);}}function CA(){var E=document.forms["MainForm"].elements;TS(0);} //*RuleFunctions T=467