var jsessionid="";function isCookiesEnabled(){return(document.cookie!="")}function addJSessionId(){if(!isCookiesEnabled()){return";jsessionid="+jsessionid}else{return""}}Ajax.Responders.register({onCreate:displayLoading,onComplete:hideLoading});function displayLoading(){Element.show("loading")}function hideLoading(){if(Ajax.activeRequestCount==0){Element.hide("loading")}}function failureAjaxUpdater(A){alert("Error "+A.status+" - "+A.statusText)}function PopupImg(A){window.open(wsUrl+"imgpop.jsp?"+A,"","location=0, menubar=0, resizable=1, scrollbars=0, status=0, titlebar=0, toolbar=0, height=200, width=200, left=25, top=25")}function setIdFocus(A){document.getElementById(A).focus()}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}}String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,"")};String.prototype.normalize_space=function(){return this.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ")};function checkCR(A){var A=(A)?A:((event)?event:null);if(A.keyCode==13){var B=A.target||A.srcElement;if(B.name=="amountProduct"){B.onchange(B)}return false}};