Skipping Data Validation

During implementation the LitWare developers realize the regular expression patterns they define cannot validate Japanese text. The following code fragment shows how the Japanese version of the PT application is excused from data validation. The Japanese version is identified by the shift-jis character set.

var item = parent.document.all.tags('META'); 
 for( var count = 0;count<item.length;count++){
   if(item[count].httpEquiv=='content-type'){
              var NodeValue = item[count].content;
              var pos = NodeValue.lastIndexOf('=');
              NodeValue = NodeValue.substr(pos+1);
              if(NodeValue=='shift-jis') return true;