/*
 * AIPUDA JSFILE Version 6.0.1
 * TONIY, March 2002
 * COPYRIGHT (c) 2000-2002 jxb2b.com.
 *
 * Netscape grants you a royalty free license to use or modify this
 * software provided that this copyright notice appears on all copies.
 * This software is provided  without a warranty of any kind.
 */

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf('?'))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function KeyCheck(){
if(document.form1.keyword.value==''){
alert("Please input keyword(s).");
document.form1.keyword.focus();
return false;}
if(document.form1.keyword.value.length < 2){
alert("Please input an legal keyword(s).");
document.form1.keyword.focus();
return false;}
if(document.form1.keyword.value.length > 100){
alert("Please input an short keyword(s).");
document.form1.keyword.focus();
return false;}
if(/[\u4E00-\u9FA5]|[\uFE30-\uFFA0]|[\u300e-\u300f]|[\u3016-\u3017]/gi.test(document.form1.keyword.value)){
alert("Please input the information in English only.");
document.form1.keyword.focus();
return false;}
}
