 <!--

function handleListChange(theList) {
  var numSelected = theList.selectedIndex;
  if (numSelected != 0) {
    textValue = document.textform.wl_text.value;
    textValue = textValue + theList.options[numSelected].value;
    document.textform.wl_text.value = textValue;
    theList.selectedIndex = 0;
  }
}
var clear = 0;
function checkClear(theEle) {
  if (clear == 0) {
    clear = 1;
    theEle.value = "";
  }
}
function validate(form) {
  var selIndex1 = form["wl_srclang"].selectedIndex;
  var selIndex2 = form["wl_trglang"].selectedIndex;
  if (form["wl_srclang"].options[selIndex1].value.toLowerCase() == form["wl_trglang"].options[selIndex2].value) {
    alert("ѡֲͬԣ");
    form["wl_trglang"].focus();
    return false;
  }
    if (form["wl_text"].value.length>400) {
    alert("벻Ҫ400֣");
    form["wl_text"].focus();
    return false;
  }

var path="SapImqyB7vNSse,FzQlIuLnp063LP1ptx";  

   wl_text=document.textform.wl_text.value;
   wl_srclang=document.textform.wl_srclang.value;
   wl_trglang=document.textform.wl_trglang.value;
   wl_glossary=document.textform.wl_glossary.value;
   wl_url="http://204.15.165.130/"+path+"/texttranslate?wl_srcenc=utf-8&wl_srclang="+wl_srclang+"&wl_trglang="+wl_trglang+"&wl_glossary="+wl_glossary+"&wl_text="+wl_text+"";
   //document.textform.wl_url.value="http://www.worldlingo.com/SPqD00f5Joihpbt7Kn8m8fpdW6MM5NnUB/texttranslate?wl_srcenc=utf-8&wl_srclang="+wl_srclang+"&wl_trglang="+wl_trglang+"&wl_glossary="+wl_glossary+"&wl_text="+wl_text+"" ;
   window.open (wl_url,'aa','height=500,width=500,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no, status=no, titlebar=no') 
  return true;
}
function showhide(id){ 
  if (document.getElementById) { 
    obj = document.getElementById(id); 
    if (obj.style.display == "none") { 
     obj.style.display = ""; 
    } else { 
      obj.style.display = "none"; 
    }
  }
} 
//-->
