<!--
function InitAjax()
{
  var ajax=false; 
  try { 
    ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
  } catch (e) { 
    try { 
      ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
    } catch (E) { 
      ajax = false; 
    } 
  }
  if (!ajax && typeof XMLHttpRequest!='undefined') { 
    ajax = new XMLHttpRequest(); 
  } 
  return ajax;
}

function sendinfo(div,url,fm,qry,qry1,qry2,qry3,qry4,qry5,qry6)
{
　var msg = document.getElementById(div);
  val = eval("document." + fm + "." + qry + ".value");
　var postStr = "act=true" + "&sheng=" + sheng +"&shi="+ shi + "&" + qry + "=" + val;
  //url = "http://dtbus.com/"+url;
  if(qry1!= null){
    val1 = eval("document." + fm + "." + qry1 + ".value");
    postStr += "&" + qry1 + "=" + val1;
  }
  if(qry2!= null){
    val2 = eval("document." + fm + "." + qry2 + ".value");
    postStr += "&" + qry2 + "=" + val2;
  }
  if(qry3!= null){
    val3 = eval("document." + fm + "." + qry3 + ".value");
    postStr += "&" + qry3 + "=" + val3;
  }
  if(qry4!= null){
    val4 = eval("document." + fm + "." + qry4 + ".value");
    postStr += "&" + qry4 + "=" + val4;
  }
  if(qry5!= null){
    val5 = eval("document." + fm + "." + qry5 + ".value");
    postStr += "&" + qry5 + "=" + val5;
  }
  if(qry6!= null){
    val6 = eval("document." + fm + "." + qry6 + ".value");
    postStr += "&" + qry6 + "=" + val6;
  }
　var ajax = InitAjax();
　ajax.open("POST", url, true); 
　ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　ajax.send(postStr);
　ajax.onreadystatechange = function() { 
　　if (ajax.readyState == 4 && ajax.status == 200) { 
　　　msg.innerHTML = ajax.responseText; //unescape()
　　} 
　} 
}

function saveInfo(letter,ch,st1,st2,st3,st4,st5)
{
　var msg = document.getElementById(letter);

　var url = "getLetterAjax.php";

　var postStr = "act=true" + "&sheng=" + sheng +"&shi="+ shi +"&ch="+ ch;
  if(st1!= null) postStr += "&divst1=" + st1;
  if(st2!= null) postStr += "&divst2=" + st2;
  if(st3!= null) postStr += "&divst3=" + st3;
  if(st4!= null) postStr += "&divst4=" + st4;
  if(st5!= null) postStr += "&divst5=" + st5;


　var ajax = InitAjax();
　ajax.open("POST", url, true); 
　ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　ajax.send(postStr);
　ajax.onreadystatechange = function() { 
　　if (ajax.readyState == 4 && ajax.status == 200) { 
　　　msg.innerHTML = ajax.responseText; //unescape()
　　} 
　} 
}

function senddiv(div,url,qry,val,qry1,val1)
{
　var msg = document.getElementById(div);
　var postStr = "act=true" + "&sheng=" + sheng +"&shi="+ shi + "&" + qry + "=" + val;

  if(qry1!= null && val1 != null){
    postStr += "&" + qry1 + "=" + val1;
  }

　var ajax = InitAjax();
　ajax.open("POST", url, true); 
　ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
　ajax.send(postStr);
　ajax.onreadystatechange = function() { 
　　if (ajax.readyState == 4 && ajax.status == 200) { 
　　　msg.innerHTML = ajax.responseText; //unescape()
　　} 
　} 
}




//-->

 
