//Copyright-Author: Morris Ng

function fnDefragChecCaIcProced(){
document.writeln("<table id=Verd10 width=460 align=center border=0 cellspacing=0 cellpadding=0>")
document.writeln("<tr id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td id=Verd10 width=55 align=center valign=top bgcolor=#ff6600><nobr><font color=white><b>Step 1</b></font></nobr></td><td>&nbsp;</td><td id=Verd10 colspan=17>Starting from number system character \(NSC\) add all the character values in odd-numbered positions.<br><br></td><td>&nbsp;</td></tr>")

document.writeln("<tr bgcolor=orange id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td bgcolor=white><nobr>&nbsp;&nbsp;&nbsp;&nbsp;</nobr></td><td id=Verd10 align=right><b>0</b></td>")
document.writeln("<td><nobr>&nbsp;&nbsp;</nobr></td><td id=Verd10><b>1</b></td><td id=Verd10><b>2</b></td><td id=Verd10><b>3</b></td><td id=Verd10><b>4</b></td><td id=Verd10><b>5</b></td>")
document.writeln("<td><nobr>&nbsp;&nbsp;</nobr></td><td id=Verd10><b>6</b></td><td id=Verd10><b>7</b></td><td id=Verd10><b>8</b></td><td id=Verd10><b>9</b></td><td id=Verd10><b>0</b></td><td><nobr>&nbsp;&nbsp;</nobr></td><td id=Verd10><b>?</b></td><td colspan=3 bgcolor=white>&nbsp;</td></tr>")

document.writeln("<tr id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#ff6600>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 align=right>0</td>")
document.writeln("<td>&nbsp;</td><td id=Verd10>+</td><td id=Verd10>2</td><td id=Verd10>+</td><td id=Verd10>4</td><td id=Verd10>+</td>")
document.writeln("<td>&nbsp;</td><td id=Verd10>6</td><td id=Verd10>+</td><td id=Verd10>8</td><td id=Verd10>+</td><td id=Verd10>0</td>")
document.writeln("<td>&nbsp;</td><td>&nbsp;</td><td id=Verd10 align=right>\(sum\) &nbsp;</td><td id=Verd10><nobr>= &nbsp;</nobr></td><td id=Verd10>20</td></tr>")

document.writeln("<tr id=Verd10><td height=50 bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td id=Verd10 align=center valign=top bgcolor=#ff6600><nobr><font color=white><b>Step 2</b></font></nobr></td><td>&nbsp;</td><td id=Verd10 colspan=17>Multiply the sum in step 1 by constant value \"3\".</td><td>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#ff6600>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 colspan=15>&nbsp;20 x 3</td><td id=Verd10 align=right>\(product\) &nbsp;</td><td id=Verd10>=</td><td id=Verd10>60</td></tr>")
document.writeln("<tr id=Verd10><td height=50 bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")

document.writeln("<tr id=Verd10><td id=Verd10 align=center valign=top bgcolor=#ff6600><nobr><font color=white><b>Step 3</b></font></nobr></td><td>&nbsp;</td><td id=Verd10 colspan=17>Add all the character values in even-numbered positions.<br><br></td><td>&nbsp;</td></tr>")
document.writeln("<tr bgcolor=orange id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 align=right><b>0</b></td>")
document.writeln("<td>&nbsp;</td><td id=Verd10><b>1</b></td><td id=Verd10><b>2</b></td><td id=Verd10><b>3</b></td><td id=Verd10><b>4</b></td><td id=Verd10><b>5</b></td>")
document.writeln("<td>&nbsp;</td><td id=Verd10><b>6</b></td><td id=Verd10><b>7</b></td><td id=Verd10><b>8</b></td><td id=Verd10><b>9</b></td><td id=Verd10><b>0</b></td>")
document.writeln("<td>&nbsp;</td><td id=Verd10><b>?</b></td><td colspan=3 bgcolor=white>&nbsp;</td></tr>")

document.writeln("<tr id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#ff6600>&nbsp;</td><td bgcolor=white>&nbsp;</td>")
document.writeln("<td>&nbsp;</td><td>&nbsp;</td><td id=Verd10>1</td><td id=Verd10>+</td><td id=Verd10>3</td><td id=Verd10>+</td><td id=Verd10>5</td>")
document.writeln("<td>&nbsp;</td><td id=Verd10>+</td><td id=Verd10>7</td><td id=Verd10>+</td><td id=Verd10>9</td>")
document.writeln("<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td  id=Verd10 align=right>\(sum\) &nbsp;</td><td id=Verd10>=</nobr></td><td id=Verd10>25</td></tr>")

document.writeln("<tr id=Verd10><td height=50 bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td id=Verd10 align=center valign=top bgcolor=#ff6600><nobr><font color=white><b>Step 4</b></font></nobr></td><td>&nbsp;</td><td id=Verd10 colspan=17>Add the product in step 2 and the sum in step 3.</td><td>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#ff6600>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 colspan=15>&nbsp;60 + 25</td><td id=Verd10 align=right>\(sum\) &nbsp;</td><td id=Verd10>=</nobr></td><td id=Verd10>85</td></tr>")

document.writeln("<tr id=Verd10><td height=50 bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td  id=Verd10 align=center align=center valign=top bgcolor=#ff6600><font color=white><nobr><b>Step 5</b></nobr></font></td><td>&nbsp;</td><td  id=Verd10 colspan=17>If the sum in step 4 is a multiple of 10, the check digit is \"0\" \(zero\). Else, subtract the sum in step 4 from the next highest multiple of 10 \(i.e., the highest multiple of 10 next to the sum in step 4 is 90\).</td><td>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#ff6600>&nbsp;</td><td bgcolor=white>&nbsp;</td><td  id=Verd10 colspan=15>&nbsp;90 - 85</td><td  id=Verd10 align=right>\(difference\) &nbsp;</td><td><nobr>= &nbsp;</nobr></td><td id=Verd10 align=center><font color=red><b>5</b></font></td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#ff6600>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td colspan=19>&nbsp;</td><td id=Verd10 align=center valign=top><font color=red><b>^</b><br>|<br>|</font></td></tr>")
document.writeln("<tr id=Verd10><td id=Verd8 colspan=20 align=right valign=top><font color=red><b>Check Digit</b></font></td></tr></table>")}
