/* DO NOT EDIT. THIS IS A CACHE FILE AND WILL GET OVERWRITTEN RANDOMLY.
INSTEAD EDIT THE TEMPLATE FROM WITHIN THE ADMIN ZONE, OR BY MANUALLY EDITING A TEMPLATES_CUSTOM OVERRIDE. */


new Image().src='http://lanotd.viclan.org.au/themes/default/images/bottom/loading.gif'.replace(/^http:/,window.location.protocol);function fix_form_enter_key(form)
{var submit=document.getElementById('submit_button');var inputs=form.getElementsByTagName('input');for(var i=0;i<inputs.length;i++)
{if(((inputs[i].type=='text')||(inputs[i].type=='password'))&&(typeof submit.onclick!='undefined')&&(submit.onclick)&&((typeof inputs[i].onkeypress=='undefined')||(!inputs[i].onkeypress)))
inputs[i].onkeypress=function(event){if(!event)event=window.event;if(enter_pressed(event))submit.onclick();};}}
function radioValue(radios)
{for(var i=0;i<radios.length;i++)
{if(radios[i].checked)return radios[i].value;}
return'';}
function confirmDelete()
{return window.confirm("Are you sure you want to delete this?");}
function setFieldError(theElement,errorMsg)
{var errorElement=null;if(typeof theElement.name!='undefined')
{var id=theElement.name;errorElement=document.getElementById('error_'+id);if(!errorElement)
{if((errorMsg=='')&&(id.indexOf('_hour')!=-1)||(id.indexOf('_minute')!=-1))return;errorElement=document.getElementById('error_'+id.replace(/\_day$/,'').replace(/\_month$/,'').replace(/\_year$/,'').replace(/\_hour$/,'').replace(/\_minute$/,''));}
if(errorElement)
{errorElement.style.display=(errorMsg=='')?'none':'block';if(getInnerHTML(errorElement)!=escape_html(errorMsg))
{setInnerHTML(errorElement,'');if(errorMsg!='')
{var msgNode=document.createTextNode(errorMsg);errorElement.appendChild(msgNode);if(typeof window.nereidFade!='undefined')
{setOpacity(errorElement,0.0);nereidFade(errorElement,100,30,4);}}}}}
if((typeof window.isWYSIWYGField!='undefined')&&(isWYSIWYGField(theElement)))theElement=theElement.parentNode;if(errorMsg!='')
{theElement.className=theElement.className+' input_erroneous';}else
{theElement.className=theElement.className.replace(/( input_erroneous($| ))+/g,' ');}}
function try_to_simplify_iframe_form()
{var form_cat_selector=document.getElementById('main_form'),i,element,count=0,found,foundButton;if(!form_cat_selector)return;var inputs=form_cat_selector.getElementsByTagName('input');var buttons=form_cat_selector.getElementsByTagName('button');var selects=form_cat_selector.getElementsByTagName('select');var textareas=form_cat_selector.getElementsByTagName('select');var elements=[];for(i=0;i<inputs.length;i++)elements.push(inputs[i]);for(i=0;i<buttons.length;i++)elements.push(buttons[i]);for(i=0;i<selects.length;i++)elements.push(selects[i]);for(i=0;i<textareas.length;i++)elements.push(textareas[i]);for(i=0;i<elements.length;i++)
{element=elements[i];if(((element.nodeName.toLowerCase()=='input')&&(element.getAttribute('type')!='hidden')&&(element.getAttribute('type')!='button')&&(element.getAttribute('type')!='image')&&(element.getAttribute('type')!='submit'))||(element.nodeName.toLowerCase()=='select')||(element.nodeName.toLowerCase()=='textarea'))
{found=element;count++;}
if(((element.nodeName.toLowerCase()=='input')&&((element.getAttribute('type')=='button')||(element.getAttribute('type')=='image')||(element.getAttribute('type')=='submit')))||(element.nodeName.toLowerCase()=='button'))
{foundButton=element;}}
if((count==1)&&(found.nodeName.toLowerCase()=='select'))
{var iframe=document.getElementById('iframe_under');found.onchange=function(){if(iframe)
{if((iframe.contentDocument)&&(iframe.contentDocument.getElementsByTagName('form').length!=0))
{if(!window.confirm('Are you sure you want to switch to editing a different one? You will lose any unsaved changes you have made.'))return false;}}
if(checkForm(form_cat_selector))
{if(iframe)animateFrameLoad(iframe,'iframe_under');form_cat_selector.submit();}
return true;}
if((found.getAttribute('size')>1)||(found.multiple))found.onclick=found.onchange;if(iframe)
{foundButton.style.display='none';}}}
function do_form_submit(form)
{if(!checkForm(form,false))return false;if((typeof form.old_action!='undefined')&&(form.old_action))form.setAttribute('action',form.old_action);if((typeof form.old_target!='undefined')&&(form.old_target))form.setAttribute('target',form.old_target);if(!form.getAttribute('target'))form.setAttribute('target','_top');if(form.getAttribute('method').toLowerCase()=='get')
{var i=0,name,elements=[];for(i=0;i<form.elements.length;i++)
{elements.push(form.elements[i]);}
for(i=0;i<elements.length;i++)
{name=elements[i].name;if((name.substr(0,11)=='label_for__')||(name.substr(0,14)=='tick_on_form__')||(name.substr(0,9)=='comcode__')||(name.substr(0,9)=='require__'))
{elements[i].parentNode.removeChild(elements[i]);}}}
if(form.onsubmit)
{var ret=form.onsubmit();if(!ret)return false;}
if((typeof window.just_checking_requirements=='undefined')||(!window.just_checking_requirements))form.submit();disable_buttons_just_clicked(document.getElementsByTagName('input'));disable_buttons_just_clicked(document.getElementsByTagName('button'));return true;}
function disable_buttons_just_clicked(inputs)
{for(var i=0;i<inputs.length;i++)
{if((inputs[i].nodeName.toLowerCase()=='button')||(inputs[i].type=='image')||(inputs[i].type=='submit')||(inputs[i].type=='button'))
{if(inputs[i].getAttribute('accesskey')=='u')
{if((!inputs[i].disabled)&&(!inputs[i].under_timer))
{disable_button_just_clicked(inputs[i]);}}}}}
function do_form_preview(form,preview_url,has_separate_preview)
{if((window.checkForm)&&(!checkForm(form,true)))return false;var old_action=form.getAttribute('action');if((has_separate_preview)||(window.has_separate_preview))
{form.setAttribute('action',old_action+'&preview=1');return true;}
if(!form.old_action)form.old_action=old_action;form.setAttribute('action',maintain_theme_in_link(preview_url)+((form.old_action.indexOf('&uploading=1')!=-1)?'&uploading=1':''));var old_target=form.getAttribute('target');if(!old_target)old_target='_top';if(!form.old_target)form.old_target=old_target;form.setAttribute('target','preview_iframe');document.getElementById('submit_button').style.display='inline';var pf=document.getElementById('preview_iframe');window.setInterval(trigger_resize,500);animateFrameLoad(pf,'preview_iframe',50);return true;}
function cleverFindValue(theForm,theElement)
{var myValue=(typeof window.getTextbox=='undefined')?theElement.value:getTextbox(theElement);if(theElement.getAttribute('type')=='radio')
{myValue='';for(var i=0;i<theForm.elements.length;i++)
{if((theForm.elements[i].checked)&&(theForm.elements[i].name==theElement.name))
myValue=theForm.elements[i].value;}}
if((theElement.nodeName.toLowerCase()=='select')&&(theElement.selectedIndex>=0))
{myValue=theElement.options[theElement.selectedIndex].value;if((myValue=='')&&(theElement.getAttribute('size')>1))myValue='-1';}
if(myValue===null)myValue='';return myValue;}
function checkField(theElement,theForm,forPreview)
{var i,theClass,required,myValue,erroneous=false,errorMsg='',regexp,totalFileSize=0,alerted=false,errorElement=null;if(((theElement.type=='hidden')||((theElement.style.display=='none')&&((typeof window.isWYSIWYGField=='undefined')||(!isWYSIWYGField(theElement)))))&&((!theElement.className)||(theElement.className.indexOf('hidden_but_needed')==-1)))
{return null;}
if((theElement.type=='file')&&(theElement.files)&&(theElement.files.item)&&(theElement.files.item(0))&&(theElement.files.item(0).fileSize))
totalFileSize+=theElement.files.item(0).fileSize;if((theElement.type=='file')&&(theElement.value)&&(theElement.name!='file_novalidate'))
{var valid_types='asf,avi,bmp,doc,docx,gif,gz,ico,jpeg,jpg,mov,mp3,mpeg,mpg,ods,odt,ogg,pdf,php,png,ppt,pptx,ps,psd,pub,qt,ra,ram,rar,rm,sql,tar,tga,tif,torrent,txt,wav,wmv,xls,xlsx,zip'.split(/,/);var type_ok=false;var theFileType=theElement.value.indexOf('.')?theElement.value.substr(theElement.value.lastIndexOf('.')+1):'None';for(var k=0;k<valid_types.length;k++)
{if(valid_types[k].toLowerCase()==theFileType.toLowerCase())type_ok=true;}
if(!type_ok)
{errorMsg="Sorry, but &lsquo;xx1xx&rsquo; files are not enabled for this website.\n<br />The following file types are enabled: asf,avi,bmp,doc,docx,gif,gz,ico,jpeg,jpg,mov,mp3,mpeg,mpg,ods,odt,ogg,pdf,php,png,ppt,pptx,ps,psd,pub,qt,ra,ram,rar,rm,sql,tar,tga,tif,torrent,txt,wav,wmv,xls,xlsx,zip.".replace(/xx1xx/g,theFileType).replace(/<[^>]*>/g,'').replace(/&[lr][sd]quo;/g,"'").replace(/,/g,', ');if(!alerted)window.alert(errorMsg);alerted=true;}}
if((browser_matches('ie'))&&(theElement.value)&&(theElement.nodeName.toLowerCase()!='select'))
{bad_word_chars=[8216,8217,8220,8221];fixed_word_chars=["'","'",'"','"'];for(i=0;i<bad_word_chars.length;i++)
{regexp=new RegExp(String.fromCharCode(bad_word_chars[i]),'gm');theElement.value=theElement.value.replace(regexp,fixed_word_chars[i]);}}
theClass=firstClassName(theElement.className);if((!forPreview)&&(theElement.name=='delete')&&(((theClass=='input_radio')&&(theElement.value!='0'))||(theClass=='input_tick'))&&(theElement.checked)){erroneous=!confirmDelete();return[erroneous,theElement,0,true];}
required=theElement.className.indexOf('_required');myValue=cleverFindValue(theForm,theElement);if((required!=-1)&&((myValue.replace(/&nbsp;/g,' ').replace(/<br\s*\/?>/g,' ').replace(/\s/g,'')=='')||(myValue=='****')))
{errorMsg="This is a required field so needs filling in";}else
{if((theElement.className.indexOf('date')!=-1)&&(theElement.name.match(/\_(day|month|year)$/))&&(myValue!=''))
{var day=theForm.elements[theElement.name.replace(/\_(day|month|year)$/,'_day')].options[theForm.elements[theElement.name.replace(/\_(day|month|year)$/,'_day')].selectedIndex].value;var month=theForm.elements[theElement.name.replace(/\_(day|month|year)$/,'_month')].options[theForm.elements[theElement.name.replace(/\_(day|month|year)$/,'_month')].selectedIndex].value;var year=theForm.elements[theElement.name.replace(/\_(day|month|year)$/,'_year')].options[theForm.elements[theElement.name.replace(/\_(day|month|year)$/,'_year')].selectedIndex].value;var source_date=new Date(year,month-1,day);if(year!=source_date.getFullYear())errorMsg="This was not a real calendar date";if(month!=source_date.getMonth()+1)errorMsg="This was not a real calendar date";if(day!=source_date.getDate())errorMsg="This was not a real calendar date";}
if(((theClass=='input_email')||(theClass=='input_email_required'))&&(myValue!='')&&(myValue!='****')&&(!myValue.match(/^[a-zA-Z0-9\._\-\+]+@[a-zA-Z0-9\._\-]+$/)))
{errorMsg="You specified a non-valid e-mail address (e-mail addresses contain \"@\")".replace('xxx',myValue);}
if(((theClass=='input_username')||(theClass=='input_username_required'))&&(myValue!='')&&(myValue!='****')&&(window.do_ajax_field_test)&&(!do_ajax_field_test('/data/username_exists.php?username='+encodeURIComponent(myValue))))
{errorMsg="xxx is not an active username".replace('xxx',myValue);}
if(((theClass=='input_integer')||(theClass=='input_integer_required'))&&(myValue!='')&&(myValue!='****')&&(parseInt(myValue,10)!=myValue-0))
{errorMsg="A field that was supposed to be an integer (for our purposes, a whole number between -2147483648 and 2147483647) was not".replace('xxx',myValue);}
if(((theClass=='input_float')||(theClass=='input_float_required'))&&(myValue!='')&&(myValue!='****')&&(parseFloat(myValue)!=myValue-0))
{errorMsg="A field that was supposed to be a float (decimal number) was not".replace('xxx',myValue);}}
setFieldError(theElement,errorMsg);if((errorMsg!='')&&(!erroneous))
{erroneous=true;errorElement=theElement;}
return[erroneous,errorElement,totalFileSize,alerted];}
function checkForm(theForm,forPreview)
{var j,theElement,erroneous=false,totalFileSize=0,alerted=false,errorElement=null,checkResult;for(j=0;j<theForm.elements.length;j++)
{if(!theForm.elements[j])continue;if(theForm.elements[j].nodeName.toLowerCase()=='object')continue;theElement=theForm.elements[j];checkResult=checkField(theElement,theForm,forPreview);if(checkResult!=null)
{erroneous=checkResult[0]|erroneous;if(!errorElement)errorElement=checkResult[1];totalFileSize+=checkResult[2];alerted=checkResult[3]|alerted;if(checkResult[0])
{theElement.onblur=function(theElement){return function(event,no_recurse){var checkResult=checkField(theElement,theForm,forPreview);if((checkResult!=null)&&(!checkResult[0]))
{setFieldError(theElement,'');}
if((!no_recurse)&&(theElement.className.indexOf('date')!=-1)&&(theElement.name.match(/\_(day|month|year)$/)))
{var e=document.getElementById(theElement.id.replace(/\_(day|month|year)$/,'_day'));if(e!=theElement)e.onblur(event,true);var e=document.getElementById(theElement.id.replace(/\_(day|month|year)$/,'_month'));if(e!=theElement)e.onblur(event,true);var e=document.getElementById(theElement.id.replace(/\_(day|month|year)$/,'_year'));if(e!=theElement)e.onblur(event,true);}}}(theElement);}}}
if((totalFileSize>0)&&(theForm.elements['MAX_FILE_SIZE']))
{if(totalFileSize>theForm.elements['MAX_FILE_SIZE'].value)
{if(!erroneous)
{errorElement=theElement;erroneous=true;}
if(!alerted)
{window.alert("The maximum upload limit is {2}KB, but you are trying to upload {1}KB.".replace(new RegExp('\\\{'+'1'+'\\\}','g'),Math.round(totalFileSize/1024)).replace(new RegExp('\\\{'+'2'+'\\\}','g'),Math.round(theForm.elements['MAX_FILE_SIZE'].value/1024)));}
alerted=true;}}
if(erroneous)
{if(!alerted)window.alert("Please check back over the form - you did not fill in all fields on the form correctly");var posy=findPosY(errorElement,true);if(posy==0)
{posy=findPosY(errorElement.parentNode,true);}
if(posy!=0)
smoothScroll(posy-50,null,null,function(){try{errorElement.focus();}catch(e){};});}
return!erroneous;}
function standardAlternateFields(_a,_b,_c,non_actually_required)
{if(!non_actually_required)non_actually_required=false;var a=_standardAlternateFieldsGet(_a);var b=_standardAlternateFieldsGet(_b);var c;if(_c)c=_standardAlternateFieldsGet(_c);if(((a)&&(!a.alternating))||((b)&&(!b.alternating))||((c)&&(!c.alternating)))
{var selfFunction=function(e){standardAlternateFields(_a,_b,_c,non_actually_required);};_standardAlternateFieldEventSet(a,selfFunction);_standardAlternateFieldEventSet(b,selfFunction);_standardAlternateFieldEventSet(c,selfFunction);}
if((a)&&(((a.value!='')&&(a.value!='-1'))||((a.virtual_value)&&(a.virtual_value!='')&&(a.virtual_value!='-1'))))
return _standardAlternateFieldsSet(a,b,c,non_actually_required);if((b)&&(((b.value!='')&&(b.value!='-1'))||((b.virtual_value)&&(b.virtual_value!='')&&(b.virtual_value!='-1'))))
return _standardAlternateFieldsSet(b,a,c,non_actually_required);if((c)&&(((c.value!='')&&(c.value!='-1'))||((c.virtual_value)&&(c.virtual_value!='')&&(c.virtual_value!='-1'))))
return _standardAlternateFieldsSet(c,a,b,non_actually_required);if(a)_standardAlternateFieldSet(a,null,false,true,non_actually_required);if(b)_standardAlternateFieldSet(b,null,false,true,non_actually_required);if(c)_standardAlternateFieldSet(c,null,false,true,non_actually_required);return null;}
function _standardAlternateFieldEventSet(a,selfFunction)
{if(a)
{if(typeof a.name!='undefined')
{addEventListenerAbstract(a,"keyup",selfFunction);addEventListenerAbstract(a,"change",selfFunction);a.fakeonchange=selfFunction;a.alternating=true;}else
{var i;for(i=0;i<a.length;i++)
{addEventListenerAbstract(a[i],"keyup",selfFunction);addEventListenerAbstract(a[i],"change",selfFunction);a[i].fakeonchange=selfFunction;a[i].alternating=true;}
a.alternating=true;}}
return null;}
function _standardAlternateFieldsGet(x)
{if(x.indexOf('*')==-1)
{return document.getElementById(x);}
x=x.substr(0,x.length-1);var _x=[],i,j,c=0,e;_x['value']='';for(i=0;i<document.forms.length;i++)
{for(j=0;j<document.forms[i].elements.length;j++)
{e=document.forms[i].elements[j];if(e.name==x)
{_x[c]=e;if(e.checked)
{_x['value']=e.value;}
if(e.alternating)_x.alternating=true;c++;}}}
return _x;}
function _standardAlternateFieldsSet(a,b,c,non_actually_required)
{if(a)_standardAlternateFieldSet(a,a,false,true,non_actually_required);if(b)_standardAlternateFieldSet(b,a,true,false,non_actually_required);if(c)_standardAlternateFieldSet(c,a,true,false,non_actually_required);}
function _standardAlternateFieldSet(us,selected,locked,required,non_actually_required)
{if(typeof us.name!='undefined')
{setLocked(us.name,locked,selected);if(!non_actually_required)setRequired(us.name,required);var tr=us;while((tr)&&(tr.nodeName.toLowerCase()!='tr'))
{tr=tr.parentNode;}
if((tr)&&(tr.nodeName.toLowerCase()=='tr'))
setOpacity(tr,locked?0.3:1.0);}else
{if(us[0])
{if(!non_actually_required)setRequired(us[0].name,required);}
var i;for(i=0;i<us.length;i++)
{if(us[i].id)
{setLocked(us[i].id,locked,selected);if(!non_actually_required)setRequired(us[i].id,required);var tr=us[i];while((tr)&&(tr.nodeName.toLowerCase()!='tr'))
{tr=tr.parentNode;}
if((tr)&&(tr.nodeName.toLowerCase()=='tr'))
setOpacity(tr,locked?0.3:1.0);}}}}
function setLocked(name,locked,selected)
{var element=document.getElementById(name);if(element)
{if(locked)
{var labels=document.getElementsByTagName('label'),label=null;for(var i=0;i<labels.length;i++)
{if(labels[i].getAttribute('for')==selected.id)
{label=labels[i];break;}}
if(label)
{var label_nice=getInnerHTML(label).replace('&raquo;','').replace('»','').replace(/^\s*/,'').replace(/\s*$/,'');if(element.type=='file')
{setFieldError(element,'Blank out the \'{1}\' field if you wish to upload a new file'.replace(/\{1\}/,label_nice));}else
{setFieldError(element,'Blank out the \'{1}\' field if you wish to set this field instead'.replace(/\{1\}/,label_nice));}}else
{setFieldError(element,'Blank out the competing field (or set to N/A) if you wish to use this one instead');}
element.className=element.className.replace(/( input_erroneous($| ))+/g,' ');}else
{setFieldError(element,'');}
element.disabled=locked;}}
function setRequired(name,required)
{var element=document.getElementById(name);var required_a=document.getElementById('requirea__'+name);var required_b=document.getElementById('requireb__'+name);var required_c=document.getElementById('requirec__'+name);var required_d=document.getElementById('required__'+name);if(element)element.className=element.className.replace(/(input\_[a-z\_]+)_required/g,'$1');if(required)
{if(element)element.className=element.className.replace(/(input\_[a-z\_]+)/g,'$1_required');if(required_a)required_a.className='de_th dottedborder_barrier_a_required';if(required_d)required_d.className='dottedborder_barrier_b_required';if(required_b)required_b.style.display='inline';if(required_c)required_c.value=1;}else
{var error=document.getElementById('error__'+name);if(error)error.style.display='none';if(required_a)required_a.className='de_th dottedborder_barrier_a_nonrequired';if(required_d)required_d.className='dottedborder_barrier_b_nonrequired';if(required_b)required_b.style.display='none';if(required_c)required_c.value=0;}
if(element)
{if(typeof element.swfob!='undefined')element.swfob.settings.required=required;}}
function toggleSubordinateFields(pic,help_id)
{var new_state,new_state_2,new_state_3,i;var tr=pic.parentNode.parentNode.parentNode;var next=tr.nextSibling;if(!next)return;while(next.nodeName.toLowerCase()!='tr')
{next=next.nextSibling;if(!next)break;if(next.className=='form_screen_field_spacer')
{next=null;break;}}
if(((!next)&&(pic.src.indexOf('expand')!=-1))||((next)&&(next.style.display=='none')))
{pic.src=((pic.src.indexOf("themewizard.php")!=-1)?pic.src.replace("expand","contract"):"http://lanotd.viclan.org.au/themes/default/images/contract.png").replace(/^http:/,window.location.protocol);pic.setAttribute('alt','Contract');pic.setAttribute('title','Contract');new_state=browser_matches('ie')?'block':'table-row';new_state_2='block';new_state_3='1px dashed';}else
{pic.src=((pic.src.indexOf("themewizard.php")!=-1)?pic.src.replace("contract","expand"):"http://lanotd.viclan.org.au/themes/default/images/expand.png").replace(/^http:/,window.location.protocol);pic.setAttribute('alt','Expand');pic.setAttribute('title','Expand');new_state='none';new_state_2='none';new_state_3='0';}
var count=0;while(tr.nextSibling)
{tr=tr.nextSibling;if(tr.nodeName.toLowerCase()!='tr')continue;if(tr.className=='form_screen_field_spacer')break;tr.style.display=new_state;if(browser_matches('ie6'))
{for(i=0;i<tr.cells.length;i++)
{tr.cells[i].style.border=new_state_3;tr.cells[i].style.display=new_state;}}
if((typeof window.nereidFade!='undefined')&&(new_state_2!='none')&&(count<50))
{setOpacity(tr,0.0);nereidFade(tr,100,30,4);count++;}}
if(!help_id)help_id=pic.parentNode.id+'_help';var help=document.getElementById(help_id);while(help)
{help.style.display=new_state_2;help=help.nextSibling;if((help)&&(help.nodeName.toLowerCase()!='p'))break;}
trigger_resize();}
function choose_picture(id,ob,name)
{var r=document.getElementById(id);if(!r)return;var e=r.form.elements[name];for(var i=0;i<e.length;i++)
{var img=e[i].parentNode.parentNode.getElementsByTagName('img')[0];if((img)&&(img!=ob))
{img.style.outline='0';if(!browser_matches('ie8+'))img.style.background='none';if(!browser_matches('no_alpha_ie_with_opacity'))
{setOpacity(img.parentNode,0.5);img.parentNode.onmouseover=function(img){return function()
{setOpacity(img.parentNode,1.0);}}(img);img.parentNode.onmouseout=function(img){return function()
{setOpacity(img.parentNode,0.5);}}(img);}}}
r.checked=true;ob.parentNode.onmouseover=function(){};ob.parentNode.onmouseout=function(){};if(typeof r.fakeonchange!='undefined'&&r.fakeonchange)r.fakeonchange();if(!browser_matches('no_alpha_ie_with_opacity'))setOpacity(ob.parentNode,1.0);ob.style.outline='1px dotted';if(!browser_matches('ie8+'))ob.style.background='green';}
function disable_preview_scripts(under)
{if(!under)under=document;var elements,i;var no_go=function(){window.alert('You are previewing, so button clicks have been disabled.');return false;};elements=under.getElementsByTagName('button');for(i=0;i<elements.length;i++)
elements[i].onclick=no_go;elements=under.getElementsByTagName('input');for(i=0;i<elements.length;i++)
if((elements[i].getAttribute('type')=='button')||(elements[i].getAttribute('type')=='image'))elements[i].onclick=no_go;elements=under.getElementsByTagName('a');for(i=0;i<elements.length;i++)
elements[i].target='false_blank';}
function setUpChangeMonitor(container,input,container2)
{var elements=[];if(input)
{elements=[document.getElementById(input)];}else
{elements=getAllFormElements(container);}
for(var i=0;i<elements.length;i++)
{if(!elements[i])continue;var func=function(){if(findIfChildrenSet(input?document.getElementById(input).parentNode:container))
{if(container.className.indexOf(' filledin')==-1)container.className+=' filledin';if(container2)if(container2.className.indexOf(' filledin')==-1)container2.className+=' filledin';}else
{container.className=container.className.replace(/ filledin$/,'');if(container2)container2.className=container2.className.replace(/ filledin$/,'');}};addEventListenerAbstract(elements[i],'blur',func);addEventListenerAbstract(elements[i],'change',func);}}
function findIfChildrenSet(container)
{var value,blank=true,theElement;var elements=getAllFormElements(container);for(var i=0;i<elements.length;i++)
{if(!elements[i])continue;theElement=elements[i];if(((theElement.type=='hidden')||((theElement.style.display=='none')&&((typeof window.isWYSIWYGField=='undefined')||(!isWYSIWYGField(theElement)))))&&((!theElement.className)||(theElement.className.indexOf('hidden_but_needed')==-1)))continue;value=cleverFindValue(theElement.form,theElement);blank=blank&(value=='');}
return!blank;}
function getAllFormElements(container)
{var i;var elements1=container.getElementsByTagName('input');var elements2=container.getElementsByTagName('select');var elements3=container.getElementsByTagName('textarea');var elements=[];for(i=0;i<elements1.length;i++)elements.push(elements1[i]);for(i=0;i<elements2.length;i++)elements.push(elements2[i]);for(i=0;i<elements3.length;i++)elements.push(elements3[i]);return elements;}
