//Copyright-Author: Morris Ng

function fnBIowUPCeLegen(){
document.writeln("<table width=400 align=center id=Verd10 border=0 cellspacing=0 cellpadding=2><tr><td id=Verd10 colspan=4><b>LEGEND:</b></td></tr>")
document.writeln("<tr valign=top bgcolor=#ffcc18><td id=Verd10><nobr>&nbsp;<b>A</b> &nbsp;</nobr></td><td id=Verd10>Left-Hand Guard Bar</td><td id=Verd10><nobr>--- &nbsp; </nobr></td><td id=Verd10>3 modules</td></tr>")
document.writeln("<tr valign=top bgcolor=#cceeee><td id=Verd10>&nbsp;<b>B</b></td><td id=Verd10>Six Characters of Code &nbsp;</td><td id=Verd10>---</td><td id=Verd10>7 modules<br>each character</td></tr>")
document.writeln("<tr valign=top bgcolor=#ffcc18><td id=Verd10>&nbsp;<b>C</b></td><td id=Verd10>Right-Hand Guard Bar</td><td id=Verd10>---</td><td id=Verd10>6 modules</td></tr>")
document.writeln("<tr><td id=Verd8 colspan=4><br><li>The light \(space\) and dark \(bar\) modules are of uniform width. <li>The even characters have either 2 or 4 dark modules, while the odd characters have either 3 or 5 dark modules. <li><font color=red>The number system character \(NSC\) and check digit are not included in the symbol</font>.</td></tr></table>")}

function fnBIowUPCePARlTYeven(){
document.writeln("<tr align=center bgcolor=#ffeeff><td id=Verd10 colspan=2><nobr><b>&nbsp;Module Location:&nbsp;</b></nobr></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><td id=Verd10 width=25>7</td></tr><tr align=center><td id=Verd10 colspan=2>&nbsp;</td><td id=Verd10 colspan=7 bgcolor=#eeeecc>Binary Pattern<br>\(0 or 1 Encodation\)</td></tr>")
document.writeln("<tr align=center bgcolor=#ffeeff><td id=Verd10 height=60 bgcolor=#do998c><font color=white><b>Character<br>of Code:</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><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=#do998c><font color=white><b>0</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>1</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>2</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>3</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>4</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>5</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>6</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>7</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>8</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>9</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")}

function fnBIowUPCePARlTYodd(){
document.writeln("<tr align=center bgcolor=#fff8d0><td id=Verd10 colspan=2><nobr><b>&nbsp;Module Location:&nbsp;</b></nobr></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><td id=Verd10 width=25>7</td></tr>")
document.writeln("<tr align=center><td id=Verd10 colspan=2>&nbsp;</td><td id=Verd10 colspan=7 bgcolor=#eeeecc>Binary Pattern<br>\(0 or 1 Encodation\)</td></tr>")
document.writeln("<tr align=center bgcolor=#fff8d0><td id=Verd10 height=60 bgcolor=#do998c><font color=white><b>Character<br>of Code:</b></font></td>")
document.writeln("<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><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=#do998c><font color=white><b>0</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>1</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>2</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>3</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>4</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>5</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>6</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>7</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>8</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")
document.writeln("<tr align=center bgcolor=#eeeeee><td id=Verd10 height=25 bgcolor=#do998c><font color=white><b>9</b></font></td><td bgcolor=white><img src=\"imgCoding/arwRRed2.gif\" border=0></td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>0</td><td id=Verd10>1</td><td id=Verd10>1</td></tr>")}
