text: var deadline=new Array;deadline["3_hours"]=18,deadline["6_hours"]=16,deadline["9_hours"]=14,deadline["12_hours"]=12,deadline["15_hours"]=10,deadline["18_hours"]=8,deadline["21_hours"]=6,deadline["24_hours"]=4,deadline["48_hours"]=4,deadline["3_days"]=4,deadline["4_days"]=4,deadline["5_days"]=4,deadline["6_days"]=4,deadline["7_days"]=4,deadline["2_weeks"]=4,deadline["3_weeks"]=4,deadline["1_month"]=4;var academic=new Array;academic.Highschool=6.96,academic.College=8.96,academic.University=8.96,academic.Masters=10.96,academic.Doctorate=11.96;var service=new Array;function academicLevel(){var e=document.getElementById("academic_level");return academic[e.value]}function deadlinePeriod(){var e=document.getElementById("deadline");return deadline[e.value]}function getnoPages(){var e=document.forms.calCulator;return parseFloat(e.elements.pages.value)}function serviceType(){var e=document.getElementById("services");return service[e.value]}function calculateTotal(){1==getnoPages()&&$(".br-r").attr("disabled",!0),200==getnoPages()&&$(".br-l").attr("disabled",!0);var e=(academicLevel()+deadlinePeriod()+serviceType())*getnoPages(),a=(academicLevel()+deadlinePeriod()+serviceType())*getnoPages()*(.12*1.168),t=+e-+a;e=e||0,a=a||0,document.getElementById("totalPrice").innerHTML=""+e.toFixed(2),document.getElementById("totalPrice").innerHTML="<h5 class='bold white'><span style='font-weight:lighter;'>MIN. PRICE: </span>"+t.toLocaleString("en-US",{style:"currency",currency:"USD"}),document.getElementById("discount").innerHTML="<h6 style='font-weight:bolder; color:black;'><span style='font-weight:lighter;'>Discount:</span> $ "+a.toFixed(2),document.getElementById("cutprice").innerHTML="<h6 style='font-weight:bolder; color:black;'><s><span style='font-weight:lighter;text-align:center;'>PRICE:</span> $ "+e.toFixed(2).toLocaleString(),document.getElementById("totalPrice").value=+e}service.Writing=1,service["Re-Writing"]=1,service.Editing=-5,service.proof_reading=-5;var $input=$("#pages");$(".br-l").click(function(){$(".br-r").removeAttr("disabled",!0),$input.val(getnoPages()+1).onchange(calculateTotal())}),$(".br-r").click(function(){$(".br-l").removeAttr("disabled",!0),$input.val(getnoPages()-1).onchange(calculateTotal())}),$(window).click(function(){getnoPages()>1&&$(".br-r").removeAttr("disabled",!0),getnoPages()<200&&$(".br-l").removeAttr("disabled",!0);var e=$("#pages");""==e.val()&&e.val(1).onchange(calculateTotal()),1==getnoPages()&&$(".br-r").attr("disabled",!0),200==getnoPages()&&$(".br-l").attr("disabled",!0)}),$("#pages").on("input",function(){var e=$(this).val();""!==e&&-1===e.indexOf(".")&&$(this).val(Math.max(Math.min(e,200),1))});