function Form2_Overview(c){var d=new Array();var e=c;var f=new Array();this.addMandatoryField=function(a,b){d[a][d[a].length]=b};this.addTable=function(a){f[f.length]=a;d[a]=new Array()};this.getTables=function(){return f};this.getTableSuccessor=function(a){for(i=0;i<f.length;i++){if(f[i]==a&&i<f.length-1){return f[i+1]}}return null};this.isMandatoryFilled=function(a){for(i=0;i<d[a].length;i++){if(document.getElementById(d[a][i]).value==""){return false}}return true}};function Form2_SelectionDialog(b,c,d){var e=b;var f=c;var g;var h=b;var i;this.close=function(){if(i!=null){i.close();i=null}this.variables_write();window.focus()};this.open=function(){i=window.open(h,e,"width=740,height=600,left=100,top=100,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,dependent=yes,hotkeys=no");i.focus()};this.variables_set=function(a){g=a};this.variables_write=function(){for(var a in g){if(document.getElementsByName(f[a])[0].type=="checkbox"){document.getElementsByName(f[a])[0].checked=g[a]=="1"?"checked":""}else{document.getElementsByName(f[a])[0].value=g[a]}}};if(d==null||d){this.open()}};function Form2_StarRating_updateDisplay(a,b){blnFound=false;for(var i=b.length-1;i>=0;i--){if(document.getElementById(a+'_value').value==b[i])blnFound=true;document.getElementById(a+'_'+b[i]).style.display=blnFound?'none':'block';document.getElementById(a+'_'+b[i]+'_filled').style.display=blnFound?'block':'none'}};function Form2_Wizard_DisplayNext(a,b){strNextElementId=null;if(b){strNextElementId=a.getTableSuccessor(b)}else if(a.getTables().length>0){strNextElementId=a.getTables()[0]}if(strNextElementId){if(b==null||a.isMandatoryFilled(b)){document.getElementById(strNextElementId).style.visibility="visible";Form2_Wizard_DisplayNext(a,strNextElementId)}}};
