Advertisement
Advertisement
| 04.26.2008 at 10:07AM PDT, ID: 23356003 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: |
<!-- This script has been in the http://www.javascripts.com Javascript Public Library! -->
<HTML><HEAD><TITLE>Pricing Calculator</TITLE>
<SCRIPT>
function dp(price)
{
string = "" + price;
number = string.length - string.indexOf('.');
if (string.indexOf('.') == -1)
return string + '.00';
if (number == 1)
return string + '00';
if (number == 2)
return string + '0';
if (number > 3)
return string.substring(0,string.length-number+3);
return string;
}
function calculate()
{
document.calcform.total1.value = dp((13.50)*(document.calcform.quantity1.value))
document.calcform.total2.value = dp((12.95+49)*(document.calcform.quantity2.value))
document.calcform.total3.value = dp((4.95)*(document.calcform.quantity3.value))
document.calcform.subtotal.value = dp(eval(document.calcform.total1.value) +
eval(document.calcform.total2.value) + eval(document.calcform.total3.value))
document.calcform.total11.value = dp((13.50)*(document.calcform.quantity1.value))
document.calcform.total21.value = dp((12.95)*(document.calcform.quantity2.value))
document.calcform.total31.value = dp((4.95)*(document.calcform.quantity3.value))
document.calcform.subtotal11.value = dp(eval(document.calcform.total11.value) +
eval(document.calcform.total21.value) + eval(document.calcform.total31.value))
document.calcform.total12.value = dp((13.50*12)*(document.calcform.quantity1.value))
document.calcform.total22.value = dp((12.95*12+49)*(document.calcform.quantity2.value))
document.calcform.total32.value = dp((4.95*12)*(document.calcform.quantity3.value))
document.calcform.subtotal12.value = dp(eval(document.calcform.total12.value) +
eval(document.calcform.total22.value) + eval(document.calcform.total32.value))
}
function resetBtn(){
document.calcform.quantity1.value=""
document.calcform.quantity2.value=""
document.calcform.quantity3.value=""
document.calcform.total1.value=""
document.calcform.total2.value=""
document.calcform.total3.value=""
document.calcform.subtotal.value=""
document.calcform.total11.value=""
document.calcform.total21.value=""
document.calcform.total31.value=""
document.calcform.subtotal11.value=""
document.calcform.total12.value=""
document.calcform.total22.value=""
document.calcform.total32.value=""
document.calcform.subtotal12.value=""
}
</SCRIPT>
</HEAD><BODY bgcolor="#ffffff" onload="calculate">
<FORM name="calcform">
<h2>Pricing Calculator Sample</h2>
<table border="1" width="880">
<tr>
<td width="416"> </td>
<td width="43" align="center"> </td>
<td width="104"> </td>
<td align="center" width="88">First Month*</td>
<td align="center" width="106">Monthly Cost</td>
<td align="center" width="106">Annual Cost</td>
</tr>
<tr>
<td width="416">
<p align="right">Please enter number of mailboxes required:</td>
<td width="43" align="center">
<INPUT type="text" name="quantity1" size="6"></td>
<td width="104"> </td>
<td align="center" width="88">
<INPUT type="text" name="total1" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="total11" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="total12" size="14"></td>
</tr>
<tr>
<td width="416"> </td>
<td width="43" align="center"> </td>
<td width="104"> </td>
<td align="center" width="88"> </td>
<td align="center" width="106"> </td>
<td align="center" width="106"> </td>
</tr>
<tr>
<td width="416">
<p align="right">Please enter number of Blackberry devices:</td>
<td width="43" align="center">
<INPUT type="text" name="quantity2" size="6"></td>
<td width="104"> </td>
<td align="center" width="88">
<INPUT type="text" name="total2" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="total21" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="total22" size="14"></td>
</tr>
<tr>
<td width="416"> </td>
<td width="43" align="center"> </td>
<td width="104"> </td>
<td align="center" width="88"> </td>
<td align="center" width="106"> </td>
<td align="center" width="106"> </td>
</tr>
<tr>
<td width="416">
<p align="right">Please enter number of Windows Mobile devices:</td>
<td width="43" align="center">
<INPUT type="text" name="quantity3" size="6"></td>
<td width="104"> </td>
<td align="center" width="88">
<INPUT type="text" name="total3" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="total31" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="total32" size="14"></td>
</tr>
<tr>
<td width="416"> </td>
<td width="43" align="center"> </td>
<td width="104"> </td>
<td align="center" width="88">________</td>
<td align="center" width="106">________</td>
<td align="center" width="106">________</td>
</tr>
<tr>
<td width="416"> </td>
<td width="43" align="center"> </td>
<td width="104">
<p align="right">Totals:</td>
<td align="center" width="88">
<INPUT type="text" name="subtotal" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="subtotal11" size="14"></td>
<td align="center" width="106">
<INPUT type="text" name="subtotal12" size="14"></td>
</tr>
<tr>
<td width="416"> </td>
<td width="43" align="center"> </td>
<td width="104"> </td>
<td align="center" width="88"> </td>
<td align="center" width="106"> </td>
<td align="center" width="106"> </td>
</tr>
<tr>
<td width="416">* Includes one-time setup fees (if applicable)</td>
<td width="43" align="center"> </td>
<td width="104"> </td>
<td align="center" width="88"> </td>
<td align="center" width="106"> </td>
<td align="center" width="106"> </td>
</tr>
</table>
<p>Click this button to calculate your totals:
<INPUT type="button" Value="Calculate" ONCLICK="calculate()" name="btn1">
<INPUT type="button" Value="Reset" name="btn2" ONCLICK="resetBtn()"></p>
</FORM>
</BODY></HTML>
<!-- Pricing Calculator -->
|