function openPanelPopup(url){var width=430;var height=445;var args=openPanelPopup.arguments;if(args.length==3){width=args[1];height=args[2];}if(!window.popup){popup=window.open(url,'popupWin','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+width+',height='+height+',screenX=20,screenY=20,top=20,left=20');}else{if(!popup.closed){window.popup.location=url;window.popup.focus();}else{popup=window.open(url,'popupWin','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+width+',height='+height+',screenX=20,screenY=20,top=20,left=20');}}}function openPagePopup(url){var width=600;var height=400;var args=openPagePopup.arguments;if(args.length==3){width=args[1];height=args[2];}if(!window.refreshedPopup){
refreshedPopup=window.open(url,'refreshedPopupWin','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',screenX=20,screenY=20,top=20,left=20');}else{if(!refreshedPopup.closed){window.refreshedPopup.location=url;window.refreshedPopup.focus();}else{refreshedPopup=window.open(url,'refreshedPopupWin','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',screenX=20,screenY=20,top=20,left=20');}}}function updateParent(child,url){if(!self.parent==null){self.parent.document.location=url;}}function updateOptions(controlSelect,dependantSelect,optionValues){var controlIndex=controlSelect.selectedIndex;removeOptions(dependantSelect);for(i=0;i<optionValues[controlIndex].length;i++){dependantSelect.options[i+1]=new Option(optionValues[controlIndex][i]);}dependantSelect.selectedIndex=0;}function addOptions(selectElement,optionValues){
for(i=0;i<optionValues.length;i++){selectElement.options[i+1]=new Option(optionValues[i]);}}function removeOptions(selectElement){selectElement.options.length=1;}function getRadioSelectedIndex(buttonGroup){if(buttonGroup[0]){for(var i=0;i<buttonGroup.length;i++){if(buttonGroup[i].checked){return i;}}}else{if(buttonGroup.checked){return 0;}}return-1;}function getRadioSelectedValue(buttonGroup){var i=getRadioSelectedIndex(buttonGroup);if(i==-1){return "";}else{if(buttonGroup[i]){return buttonGroup[i].value;}else{return buttonGroup.value;}}}function addAsFavourite(favTitle){if(window.external){window.external.AddFavorite(top.location.href,favTitle);}}
function checkMaxSelections(checkbox,limit){var checkboxGroup=checkbox.form[checkbox.name];var totalChecked=0;if(checkbox.checked){for(var i=0;i<checkboxGroup.length;i++){if(checkboxGroup[i].checked && ++totalChecked>limit){checkbox.checked=false;break;}}}}
