");
mesg.document.write("Cost to protect LAN ");
mesg.document.write("No.of System Users * est. $300 per Workstation. | ");
mesg.document.write("$"+Math.round(300*A) + " |
");
/*ROI over 1 year*/
if (1 < W) {
mesg.document.write("| ROI in One Year");
mesg.document.write("(Savings per Year/Cost to Protect LAN)*100 | ");
mesg.document.write(""+Math.round(W/(300*A)*100)+"% |
");
if (Units1==Dollars) {
mesg.document.write("");
mesg.document.write("
");
mesg.document.write("$"+Math.round(W)+" ");
mesg.document.write(" ");
mesg.document.write("
$0 $250,000 $500,000 $750,000 %1 Mil. ");
mesg.document.write(" | ");
}
else {
if (W<50*MILLION) {
if (YearLength>380)YearLength=380;
mesg.document.write("
");
mesg.document.write(" ");
mesg.document.write("$" + Math.round(W/MILLION) + " Mil. ");
}
else {
YearLength=370;
mesg.document.write(" |
");
mesg.document.write("$50 Mil.+ ");
}
mesg.document.write("
");
mesg.document.write("
$1 $12.5 $25 $37.5 $50 Mil. | ");
}
if (W<300) {
mesg.document.write(" ");
}
else if (300 <= W && W<5000) {
mesg.document.write(" | ");
}
else if (5000 <= W && W<20000) {
mesg.document.write(" | ");
}
else if (20000 <= W && W<5*MILLION) {
mesg.document.write(" | ");
}
else if (5*MILLION<=W && W<20*MILLION) {
mesg.document.write(" | ");
}
else if (20*MILLION <= W) {
mesg.document.write(" | ");
}
mesg.document.write(" |
| ");
mesg.document.write("Savings in one year equals approx. ");
if (W<300) {
if (W==1)mesg.document.write("1 order of General Tsou's chicken");
else mesg.document.write( Math.round(W)+" orders of General Tsou's chicken");
}
if (300<=W && W < 5*THOUSAND) {
if (W/(3*HUNDRED)==1)
mesg.document.write("1 bmx bike");
else
mesg.document.write(Math.round(W/(3*HUNDRED))+" bmx bikes");
}
if ((5*THOUSAND)<=W && W<(20*THOUSAND)) {
if (W<(10*THOUSAND))
mesg.document.write("1 workstation");
else
mesg.document.write(Math.round(W/(5*THOUSAND))+" workstations");
}
if ((20*THOUSAND)<=W && W<(5*MILLION)) {
if (W<(40*THOUSAND))
mesg.document.write("1 company car.");
else
mesg.document.write(Math.round(W/(20*THOUSAND))+" company cars.");
}
if ((5*MILLION)<=W && W <(20*MILLION)) {
if (W<(10*MILLION))
mesg.document.write("1 corporate jet");
else
mesg.document.write(Math.round(W/(5*MILLION))+" corporate jets");
}
if ((20*MILLION)<=W){
if(W<(40*MILLION))
mesg.document.write("1 resort hotel");
else
mesg.document.write(Math.round(W/(40*MILLION))+" office buildings");
}
mesg.document.write(" |
");
}//end ROI GREATER THAN 1
if (1ROI over Five Years");
mesg.document.write("(Losses over Five Years/Cost to Protect LAN)*100 | ");
mesg.document.write(""+Math.round(X/(300*A)*100)+"% | ");
if (Units2==Dollars) {
mesg.document.write("");
mesg.document.write("
");
mesg.document.write("$"+Math.round(X)+" ");
mesg.document.write(" ");
mesg.document.write("$0 $250,000 $500,000 $750,000 $1 Mil. ");
mesg.document.write(" | ");
}
else {
if (X<50*MILLION) {
if (FiveYearLength>380)FiveYearLength=380;
mesg.document.write("
");
mesg.document.write(" ");
mesg.document.write("$" + Math.round(X/MILLION) + " Mil. ");
}
else {
FiveYearLength=370;
mesg.document.write(" |
");
mesg.document.write("$50 Mil.+ ");
}
mesg.document.write("
");
mesg.document.write("
$1 $12.5 $25 $37.5 $50 Mil. | ");
}//end units not in dollars
if (X<300) {
mesg.document.write(" ");
}
else if (300<=X && X<5000) {
mesg.document.write(" | ");
}
else if (5000<=X && X<20000) {
mesg.document.write(" | ");
}
else if (20000<=X && X<5*MILLION) {
mesg.document.write(" | ");
}
else if ((5*MILLION)<=X && X<20*MILLION) {
mesg.document.write(" | ");
}
else if ((20*MILLION)<=X) {
mesg.document.write(" | ");
}
mesg.document.write(" |
| ");
mesg.document.write("Savings in five years equals approx. ");
if (X<300) {
if (X==1)mesg.document.write("1 order of General Tsou's chicken");
else mesg.document.write( Math.round(X)+" orders of General Tsou's chicken");
}
if ((300<=X) && X < 5*THOUSAND) {
if (X/(3*HUNDRED)==1)
mesg.document.write("1 mountain bike");
else
mesg.document.write(Math.round(X/(3*HUNDRED))+" bmx bikes");
}
if ((5*THOUSAND)<=X && X<(20*THOUSAND)) {
if (X<(10*THOUSAND))
mesg.document.write("1 workstation");
else
mesg.document.write(Math.round(X/(5*THOUSAND))+" workstations");
}
if ((20*THOUSAND)<=X && X<(5*MILLION)) {
if (X<(40*THOUSAND))
mesg.document.write("1 company car.");
else
mesg.document.write(Math.round(X/(20*THOUSAND))+" company cars.");
}
if ((5*MILLION)<=X && X <(20*MILLION)) {
if (X<(10*MILLION))
mesg.document.write("1 corporate jet");
else
mesg.document.write(Math.round(X/(5*MILLION))+" corporate jets");
}
if ((20*MILLION)<=X) {
if(X<(40*MILLION))
mesg.document.write("1 resort hotel");
else
mesg.document.write(Math.round(X/(40*MILLION))+" office buildings");
}
mesg.document.write(" |
");
}//end positive 5 year ROI
mesg.document.write("