// Occurs before the form is loaded function before_load() { } // Occurs just before submitting the form function before_submit() { } // Occurs just before resetting the form function before_reset() { } Enter Amount: $ . DollarsCentsSubmitReset JURI_ROOT =''; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING = '`grading_label` Total should be less than `grading_total`'; FormCurrency ='$'; FormPaypalTax ='0'; function formOnload13() { if (wdformjQuery.browser.msie && parseInt(wdformjQuery.browser.version, 10) === 8) { wdformjQuery("#form13").find(wdformjQuery("input[type='radio']")).click(function() {wdformjQuery("input[type='radio']+label").removeClass('if-ie-div-label'); wdformjQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); wdformjQuery("#form13").find(wdformjQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); wdformjQuery("#form13").find(wdformjQuery("input[type='checkbox']")).click(function() {wdformjQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); wdformjQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); wdformjQuery("#form13").find(wdformjQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } if(wdformjQuery.browser.msie) { wdformjQuery(".wdform-calendar-button").click(function() { var pos = wdformjQuery(this).offset().top; setTimeout(function(){ wdformjQuery(".calendar").each(function (){ if(wdformjQuery(this).css("display") == "block"){ wdformjQuery(this).css("top", parseInt(pos)-wdformjQuery(this).height()+"px"); } }); },300); }); } wdformjQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); wdformjQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); wdformjQuery("div[type='type_grading'] input").keypress(function() {return check_isnum_or_minus(event)}); wdformjQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(13)}); wdformjQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(13)}); wdformjQuery(".wdform-quantity").change(function() {set_total_value(13)}); wdformjQuery("div[type='type_time'] input").blur(function() {add_0(this)}); wdformjQuery('.wdform-element-section').each(function() { if(!wdformjQuery(this).parent()[0].style.width && parseInt(wdformjQuery(this).width())!=0) { if(wdformjQuery(this).css('display')=="table-cell") { if(wdformjQuery(this).parent().attr('type')!="type_captcha") wdformjQuery(this).parent().css('width', parseInt(wdformjQuery(this).width()) + parseInt(wdformjQuery(this).parent().find(wdformjQuery(".wdform-label-section"))[0].style.width)+15); else wdformjQuery(this).parent().css('width', (parseInt(wdformjQuery(this).parent().find(wdformjQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(wdformjQuery(this).parent().find(wdformjQuery(".wdform-label-section"))[0].style.width)+15); } } if(parseInt(wdformjQuery(this)[0].style.width.replace('px', '')) < parseInt(wdformjQuery(this).css('min-width').replace('px', ''))) wdformjQuery(this).css('min-width', parseInt(wdformjQuery(this)[0].style.width.replace('px', ''))-10); }); wdformjQuery('.wdform-label').each(function() { if(parseInt(wdformjQuery(this).height()) >= 2*parseInt(wdformjQuery(this).css('line-height').replace('px', ''))) { wdformjQuery(this).parent().css('max-width',wdformjQuery(this).parent().width()); wdformjQuery(this).parent().css('width',''); } }); (function(wdformjQuery){ wdformjQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = wdformjQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = wdformjQuery(allElems[random]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ wdformjQuery(this).replaceWith(wdformjQuery(shuffled[i])); }); return wdformjQuery(shuffled); }; })(wdformjQuery); wdformjQuery("#wdform_2_element_cents13").blur(function() {add_0(this)});wdformjQuery("#wdform_2_element_cents13").keypress(function() {return check_isnum_interval(event,this,0,99)});wdformjQuery("").appendTo("#form13"); if(window.before_load) { before_load(); } } function formAddToOnload13() { if(formOldFunctionOnLoad13){ formOldFunctionOnLoad13(); } formOnload13(); } function formLoadBody13() { formOldFunctionOnLoad13 = window.onload; window.onload = formAddToOnload13; } var formOldFunctionOnLoad13 = null; formLoadBody13(); form_view_count13=0; for(i=1; i1) { for(i=1; irange_max) || parseFloat(price)range_max) || parseFloat(price)