function calculate(input) { if (input.numhours.value=="10@88") { planhours=10; rate=88; resp="NA"; } else if (input.numhours.value=="20@85") { planhours=20; rate=85; resp="2BD"; } else if (input.numhours.value=="30@83.33") { planhours=30; rate=83.333333333; resp="NBD"; } else if (input.numhours.value=="40@80") { planhours=40; rate=80; resp="NBD"; } else if (input.numhours.value=="50@80") { planhours=50; rate=80; resp="SBD"; } else if (input.numhours.value=="50@85") { planhours=50; rate=85; resp="SBD"; } else if (input.numhours.value=="10@120") { planhours=10; rate=120; resp="NA"; } else if (input.numhours.value=="20@118") { planhours=20; rate=118; resp="2BD"; } else if (input.numhours.value=="30@108") { planhours=30; rate=108; resp="NBD"; } else if (input.numhours.value=="40@103") { planhours=40; rate=103; resp="NBD"; } else if (input.numhours.value=="50@98") { planhours=50; rate=98; resp="SBD"; } else if (input.numhours.value=="10@148") { planhours=10; rate=148; resp="NA"; } else if (input.numhours.value=="20@143") { planhours=20; rate=143; resp="2BD"; } else if (input.numhours.value=="30@138") { planhours=30; rate=138; resp="NBD"; } else if (input.numhours.value=="40@133") { planhours=40; rate=133; resp="NBD"; } else if (input.numhours.value=="50@128") { planhours=50; rate=128; resp="SBD"; } else if (input.numhours.value=="50@196") { planhours=50; rate=196; resp="4HR"; } input.pretaxtotal.value=formatCurrency(eval(planhours*rate)); input.totalnumhours.value=planhours; input.resp.value=resp; } function formatCurrency(strValue) { strValue = strValue.toString().replace(/\$|\,/g,\'\'); dblValue = parseFloat(strValue); blnSign = (dblValue == (dblValue = Math.abs(dblValue))); dblValue = Math.floor(dblValue*100+0.50000000001); intCents = dblValue%100; strCents = intCents.toString(); dblValue = Math.floor(dblValue/100).toString(); if(intCents<10) strCents = "0" + strCents; for (var i = 0; i < Math.floor((dblValue.length-(1+i))/3); i++) dblValue = dblValue.substring(0,dblValue.length-(4*i+3))+ dblValue.substring(dblValue.length-(4*i+3)); return (((blnSign)?\'\':\'-\') + dblValue + \'.\' + strCents); } function submitform(input) { if (input.totalnumhours.value == "" || input.pretaxtotal.value == "" || input.resp.value == "") { alert("Please Calculate a Bulk Hour Plan"); } else { input.submit(); } } '; if (isset($_GET['clientid'])) { $clientid = $_GET['clientid']; $quote_content .= '
'; } else { $quote_content .= ''; } $quote_content .= '

Bulk Hour Quote Requisition:

Number of Hours

 

Bulk Hour Purchase Summary:

Number of Hours:
Response Time:
Subtotal: $

'; $findcust_content='
ClientID#:
   
First Name:
Secondary First Name:
Last Name:
Secondary Last Name:
Primary Phone:
Secondary Phone:
Company Name:
Secondary Cell:
Company Address:
 
Postal Code:
 
Company Phone:
 
   
 

 

'; ?>