function load(e,a){var c=e.split("|");if(a){for(var b=0;b<=c.length-1;++b){$(c[b]).style.display="block"}}else{for(var d=0;d<=c.length-1;++d){$(c[d]).style.display="none"}}}function numKeyPress(a){var b;if(window.event){b=window.event.keyCode}else{if(a){b=a.which}}if(b>=48&&b<=57){return true}if(b==8){return true}if(b==9){return true}if(b==11){return true}if(b==0){return true}return false}function txtnumKeyPress(a){var b;if(window.event){b=window.event.keyCode}else{if(a){b=a.which}}if(b>=97&&b<=122){return true}if(b>=65&&b<=90){return true}if(b>=48&&b<=57){return true}if(b==32){return true}return false}function txtKeyPress(a){var b;if(window.event){b=window.event.keyCode}else{if(a){b=a.which}}if(b>=97&&b<=122){return true}if(b>=65&&b<=90){return true}if(b==32){return true}return false}function formatNumber(b,a){anynum=b;divider=10;switch(a){case 0:divider=1;break;case 1:divider=10;break;case 2:divider=100;break;default:divider=1000}workNum=Math.abs((Math.round(anynum*divider)/divider));workStr=""+workNum;if(workStr.indexOf(".")==-1){workStr+="."}dStr=workStr.substr(0,workStr.indexOf("."));dNum=dStr-0;pStr=workStr.substr(workStr.indexOf("."));while(pStr.length-1<a){pStr+="0"}if(pStr=="."){pStr=""}if(dNum>=1000){dLen=dStr.length;dStr=parseInt(""+(dNum/1000))+","+dStr.substring(dLen-3,dLen)}if(dNum>=1000000){dLen=dStr.length;dStr=parseInt(""+(dNum/1000000))+","+dStr.substring(dLen-7,dLen)}retval=dStr+pStr;if(anynum<0){retval="("+retval+")"}retval="$"+retval;return retval}function Setup(){Ajax.Responders.register({onCreate:function(){Element.show("divProcessing")},onComplete:function(){Element.hide("divProcessing")},onFailure:Failure})}var field_length=0;function TabNext(c,b,a,d){if(b=="down"){field_length=c.value.length}else{if(b=="up"){if(c.value.length!=field_length){field_length=c.value.length;if(field_length==a){d.focus()}}}}}function getQueryVariable(a){var c=window.location.search.substring(1);var d=c.split("&");for(var b=0;b<d.length;b++){var e=d[b].split("=");if(e[0]==a){return e[1]}}return""};
