function check()
{
   if(checkspace(document.searchform.searchkey.value !='Please Input keywords'))  {
	document.searchform.searchkey.focus();
	alert("Please Input keywords!");
	return false;
  }
  if(checkspace(document.searchform.searchkey.value))  {
	document.searchform.searchkey.focus();
	alert("Please Input keywords!");
	return false;
  }
   document.searchform.submit();
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
  function checkuu()
{
    if(checkspace(document.loginfo.username.value)) {
	document.loginfo.username.focus();
	//confirm("Click OK or Cancel to Continue");
	//prompt("aa");
    alert("Please choose a Member ID .",0);
	return false;
  }
    if(checkspace(document.loginfo.UserPassword.value)) {
	document.loginfo.UserPassword.focus();
    alert("Please specify a Password . ");
	return false;
  }
    if(checkspace(document.loginfo.passcode.value)){
	document.loginfo.passcode.focus();
	alert("Please specify Validate! ");
	return false;
	}
	
  }
function Winopen(Url)
{
	window.open(Url,"facility","left=0,top=0,width=700,height=600,toolbar=1,status=1,scrollbars=1");
}
function setDynaList(arrNLists){

 var oList1 = document.forms[arrNLists[2]].elements[arrNLists[1]];
 var oList2 = document.forms[arrNLists[4]].elements[arrNLists[3]];
 var arrList = arrNLists[5];
 
 clearDynaList(oList2);
 
 if (oList1.selectedIndex == -1){
  oList1.selectedIndex = 0;
 }

 populateDynaList(oList2, oList1[oList1.selectedIndex].value, arrList);
 return true;
}
 
function clearDynaList(oList){

 for (var i = oList.options.length; i >= 0; i--){
  oList.options[i] = null;
 }
 
 oList.selectedIndex = -1;
}
 
function populateDynaList(oList, nIndex, aArray){

 for (var i = 0; i < aArray.length; i= i + 3){
  if (aArray[i] == nIndex){
   oList.options[oList.options.length] = new Option(aArray[i + 1], aArray[i + 2]);
   if (aArray[i+2] == nclassid )
   {
	   //alert(oList.options.length);
	   oList.selectedIndex = oList.options.length-1;
   }
  }
 }

 if (oList.options.length == 0){
  oList.options[oList.options.length] = new Option(" - Select -",0);
 }
 else{
  oList.options[oList.options.length] = new Option('- Select -', 0);
 }
	
 if (nclassid == 0)
 {
  oList.selectedIndex = oList.options.length-1;
//oList.selectedIndex = 2;
}

}
function Kermy_JS(jsStr) { 
  return eval(jsStr)
}


var arrNList = new Array();
var arrNSet = new Array();

arrNSet[1] = "ClassID";              // Name of parent list box
arrNSet[2] = "myform00";                      // Name of form containing parent list box
arrNSet[3] = "NClassID";               // Name of child list box
arrNSet[4] = "myform00";                      // Name of form containing child list box
arrNSet[5] = arrNList;

var a4422tf="51la";var a4422pu="";var a4422pf="51la";var a4422su=window.location;var a4422sf=document.referrer;var a4422of="";var a4422op="";var a4422ops=1;var a4422ot=1;var a4422d=new Date();var a4422color="";if (navigator.appName=="Netscape"){a4422color=screen.pixelDepth;} else {a4422color=screen.colorDepth;}
try{a4422tf=top.document.referrer;}catch(e){}
try{a4422pu =window.parent.location;}catch(e){}
try{a4422pf=window.parent.document.referrer;}catch(e){}
try{a4422ops=document.cookie.match(new RegExp("(^| )AJSTAT_ok_pages=([^;]*)(;|$)"));a4422ops=(a4422ops==null)?1: (parseInt(unescape((a4422ops)[2]))+1);var a4422oe =new Date();a4422oe.setTime(a4422oe.getTime()+60*60*1000);document.cookie="AJSTAT_ok_pages="+a4422ops+ ";path=/;expires="+a4422oe.toGMTString();a4422ot=document.cookie.match(new RegExp("(^| )AJSTAT_ok_times=([^;]*)(;|$)"));if(a4422ot==null){a4422ot=1;}else{a4422ot=parseInt(unescape((a4422ot)[2])); a4422ot=(a4422ops==1)?(a4422ot+1):(a4422ot);}a4422oe.setTime(a4422oe.getTime()+365*24*60*60*1000);document.cookie="AJSTAT_ok_times="+a4422ot+";path=/;expires="+a4422oe.toGMTString();}catch(e){}
a4422of=a4422sf;if(a4422pf!=="51la"){a4422of=a4422pf;}if(a4422tf!=="51la"){a4422of=a4422tf;}a4422op=a4422pu;try{lainframe}catch(e){a4422op=a4422su;}document.write('<img style="width:0px;height:0px" src="http://web.51.la/go.asp?we=A&svid=9&id=1744422&tpages='+a4422ops+'&ttimes='+a4422ot+'&tzone='+(0-a4422d.getTimezoneOffset()/60)+'&tcolor='+a4422color+'&sSize='+screen.width+','+screen.height+'&referrer='+escape(a4422of)+'&vpage='+escape(a4422op)+'" />');