function onBodyLoad(){if(typeof(_onload_functions)!="undefined"){for(var i=0;i<_onload_functions.length;i++){_onload_functions[i]()}}}function changeTextFieldFromSelect(select,textField){textField.value=select.options[select.selectedIndex].value}function changeSelectFromTextField(textField,select){for(var i=0;i<select.options.length;i++){if(select.options[i].value.toLowerCase()==textField.value.toLowerCase()){select.selectedIndex=i;return}}select.selectedIndex=0;if(textField.value.length==0){textField.value=select.options[select.selectedIndex].value}}function updateValuesByFieldName(form,value,namePrefix){for(var i=0;i<form.elements.length;i++){if(form.elements[i].name.indexOf(namePrefix)==0){form.elements[i].value=value}}}function onWithdrawTypeChanged(withdrawTypeSelect,rowName){var rows=document.getElementsByName(rowName);var withdrawType=withdrawTypeSelect.options[withdrawTypeSelect.selectedIndex].value;var i;for(i=0;i<rows.length;i++){var withdraw=rows[i].getAttribute("withdraw");if(withdraw!=null){if(withdraw==withdrawType){rows[i].style.display=""}else{rows[i].style.display="none"}}}}function showNextUploadFile(rowId,nextButtonId){var row=document.getElementById(rowId);var nextButton=document.getElementById(nextButtonId);row.style.display="";nextButton.style.visibility="hidden"};
var COOKIE_VERSION="0.1";function getCookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))){return null}if(start==-1){return null}var end=document.cookie.indexOf(";",len);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(len,end))}function setCookie(name,value,expires,path,domain,secure){setRawCookie(name+"="+escape(value)+((expires)?";expires="+expires.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":""))}function removeCookie(name,path,domain,secure){var thepast=new Date();thepast.setYear(thepast.getYear()-2);setCookie(name,"",thepast,path,domain,secure)}function setPermCookie(name,value,path,domain,secure){var thefuture=new Date();var year=(thefuture.getYear()<1000)?thefuture.getYear()+1900:thefuture.getYear();thefuture.setYear(year+5);setCookie(name,value,thefuture,path,domain,secure)}function setRawCookie(cookie){document.cookie=cookie};
function getTimezone(){var toffset=(new Date()).getTimezoneOffset();var res=(toffset>0)?"GMT-":"GMT+";res+=Math.abs(toffset/60);return res}_onload_functions[_onload_functions.length]=function(){var timezone=getTimezone();setCookie("org.softservice.web.customer.PerformerProfilePage.Timezone",timezone,new Date(2100,1,1,1,1,1),"/")};
