//Copyright-Author: Morris Ng

function fnBIowEanPARlTY(){
document.writeln("<tr align=center align=center bgcolor=#ffeeee><td id=Verd10 colspan=3><b>Left-Hand Character<br>Location Number:</b></td><td id=Verd10 width=25>1</td><td id=Verd10 width=25>2</td><td id=Verd10 width=25>3</td><td id=Verd10 width=25>4</td><td id=Verd10 width=25>5</td><td id=Verd10 width=25>6</td></tr>")
document.writeln("<tr align=center><td width=25 rowspan=13><nobr>&nbsp; &nbsp; &nbsp;</nobr></td><td id=Verd10 colspan=2>&nbsp;</td><td id=Verd10 colspan=6 bgcolor=#eeffee>Character Set<br>Parity Pattern</td></tr>")
document.writeln("<tr align=center bgcolor=#ffeeee><td id=Verd10 height=60 bgcolor=#bf6000><font color=white><b>Value of<br>13th Digit:</b></font></td><td id=Verd10 bgcolor=white>&nbsp;</td><td><img src=\"imgCoding/arwBRed.gif\" border=0></td><td><img src=\"imgCoding/arwBRed.gif\" border=0></td>")
document.writeln("<td><img src=\"imgCoding/arwBRed.gif\" border=0></td><td><img src=\"imgCoding/arwBRed.gif\" border=0></td><td><img src=\"imgCoding/arwBRed.gif\" border=0></td><td><img src=\"imgCoding/arwBRed.gif\" border=0></td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>0</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>A</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>1</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>2</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>B</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>3</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>A</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>4</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>5</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>A</td><td id=Verd10>B</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>6</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>A</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>7</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>B</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>8</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>A</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#bf6000><font color=white><b>9</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>B</td><td id=Verd10>A</td><td id=Verd10>B</td><td id=Verd10>A</td></tr>")}

function fnBIowEanDlG1TCaIc(){
document.writeln("<table id=Verd10 width=460 align=center border=0 cellspacing=0 cellpadding=0>")
document.writeln("<tr id=Verd10><td bgcolor=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td id=Verd10 width=55 align=center valign=top bgcolor=#6666cc><nobr><font color=white><b>Step 1</b></font></nobr></td><td>&nbsp;</td><td id=Verd10 colspan=17>Starting from 2nd digit position, add all the character values in even-numbered positions.<br><br></td><td>&nbsp;</td></tr>")
document.writeln("<tr bgcolor=#9999cc id=Verd10><td bgcolor=#6666cc>&nbsp;</td><td bgcolor=white><nobr>&nbsp;&nbsp;&nbsp;&nbsp;</nobr></td><td id=Verd10 align=right><b>4</b></td>")
document.writeln("<td><nobr>&nbsp;&nbsp;</nobr></td><td id=Verd10><b>7</b></td><td id=Verd10><b>1</b></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>")
document.writeln("<td><nobr>&nbsp;&nbsp;</nobr></td><td id=Verd10><b>5</b></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>?</b></td><td colspan=3 bgcolor=white>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#6666cc>&nbsp;</td><td bgcolor=white>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td id=Verd10>7</td><td id=Verd10>+</td><td id=Verd10>1</td><td id=Verd10>+</td><td id=Verd10>3</td><td id=Verd10>+</td>")
document.writeln("<td>&nbsp;</td><td id=Verd10>5</td><td id=Verd10>+</td><td id=Verd10>7</td><td id=Verd10>+</td><td id=Verd10>9</td><td>&nbsp;</td><td id=Verd10 align=right>\(sum\) &nbsp;</td><td id=Verd10><nobr>= &nbsp;</nobr></td><td id=Verd10>32</td></tr>")

document.writeln("<tr id=Verd10><td height=50 bgcolor=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td id=Verd10 align=center valign=top bgcolor=#6666cc><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=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#6666cc>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 colspan=15>&nbsp;32 x 3</td><td id=Verd10 align=right>\(product\) &nbsp;</td><td id=Verd10>=</td><td id=Verd10>96</td></tr>")
document.writeln("<tr id=Verd10><td height=50 bgcolor=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")

document.writeln("<tr id=Verd10><td id=Verd10 align=center valign=top bgcolor=#6666cc><nobr><font color=white><b>Step 3</b></font></nobr></td><td>&nbsp;</td><td id=Verd10 colspan=17>Starting from 3rd digit position, add all the character values in odd-numbered positions.<br><br></td><td>&nbsp;</td></tr>")
document.writeln("<tr bgcolor=#9999cc id=Verd10><td bgcolor=#6666cc>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 align=right><b>4</b></td>")
document.writeln("<td><nobr>&nbsp;&nbsp;</nobr></td><td id=Verd10><b>7</b></td><td id=Verd10><b>1</b></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>")
document.writeln("<td><nobr>&nbsp;&nbsp;</nobr></td><td id=Verd10><b>5</b></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>?</b></td><td colspan=3 bgcolor=white>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#6666cc>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 align=right>4</td><td>&nbsp;</td><td id=Verd10>+</td><td id=Verd10>1</td><td id=Verd10>+</td><td id=Verd10>2</td><td id=Verd10>+</td><td id=Verd10>4</td>")
document.writeln("<td>&nbsp;</td><td id=Verd10>+</td><td id=Verd10>6</td><td id=Verd10>+</td><td id=Verd10>8</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=#6666cc>&nbsp;</td><td colspan=25>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td id=Verd10 align=center valign=top bgcolor=#6666cc><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=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#6666cc>&nbsp;</td><td bgcolor=white>&nbsp;</td><td id=Verd10 colspan=15>&nbsp;96 + 25</td><td id=Verd10 align=right>\(sum\) &nbsp;</td><td id=Verd10>=</nobr></td><td id=Verd10>121</td></tr>")
document.writeln("<tr id=Verd10><td height=50 bgcolor=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td  id=Verd10 align=center align=center valign=top bgcolor=#6666cc><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 130\).</td><td>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#6666cc>&nbsp;</td><td colspan=19>&nbsp;</td></tr>")
document.writeln("<tr id=Verd10 bgcolor=#eeeeee><td bgcolor=#6666cc>&nbsp;</td><td bgcolor=white>&nbsp;</td><td  id=Verd10 colspan=15>&nbsp;130 - 121</td><td  id=Verd10 align=right>\(difference\) &nbsp;</td><td><nobr>= &nbsp;</nobr></td><td id=Verd10 align=center><font color=red><b>9</b></font></td></tr>")
document.writeln("<tr id=Verd10><td bgcolor=#6666cc>&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>")}
