var m_iffc = 0; function show_info() { var cstr1 = document.getElementById('mytext').value; cstr1 = cstr1.replace(/\[T\]\[S\]/g,'\[\/T\]\[S\]'); cstr1 = cstr1.replace(/\[SC\]/g,'
  • 上车
  • \n'); cstr1 = cstr1.replace(/\[\/SC\]/g,'\n'); cstr1 = cstr1.replace(/\[T\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[\/T\]\[S\]/g,' '); cstr1 = cstr1.replace(/\[\/S\]\[A\]/g,'
    '); cstr1 = cstr1.replace(/\[\/A\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[X\]/g,'
  • 路程
  • \n
  • '); cstr1 = cstr1.replace(/\[\/X\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[J\]/g,'
  • 接驳
  • \n
  • '); cstr1 = cstr1.replace(/\[\/J\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[XC\]/g,'
  • 下车
  • \n'); cstr1 = cstr1.replace(/\[\/XC\]/g,'\n'); cstr1 = cstr1.replace(/\[\/S\]\[T\]/g,'\n
  • '); cstr1 = cstr1.replace(/\[QC\]/g,'
  • 去程
  • \n'); cstr1 = cstr1.replace(/\[\/QC\]/g,'\n'); cstr1 = cstr1.replace(/\[FC\]/g,'
  • 返程
  • \n'); cstr1 = cstr1.replace(/\[\/FC\]/g,'\n'); cstr1 = cstr1.replace(/\[S\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[\/S\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[D1\]/g,''); cstr1 = cstr1.replace(/\[\/D1\]/g,''); cstr1 = cstr1.replace(/\[D2\]/g,''); cstr1 = cstr1.replace(/\[\/D2\]/g,''); cstr1 = cstr1.replace(/\[D3\]/g,''); cstr1 = cstr1.replace(/\[\/D3\]/g,''); cstr1 = ''; var obj1 = document.getElementById('div_2'); var obj2 = document.getElementById('mytext1'); obj2.value = cstr1; obj1.innerHTML = cstr1; } function show_info1() { var cstr1 = document.getElementById('mytext').value; cstr1 = cstr1.replace(/\[T\]\[S\]/g,'\[\/T\]\[S\]'); cstr1 = cstr1.replace(/\[SC\]/g,'
  • 上车
  • \n'); cstr1 = cstr1.replace(/\[\/SC\]/g,'\n'); cstr1 = cstr1.replace(/\[T\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[\/T\]\[S\]/g,' '); cstr1 = cstr1.replace(/\[\/S\]\[A\]/g,'
    '); cstr1 = cstr1.replace(/\[\/A\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[X\]/g,'
  • 路程
  • \n
  • '); cstr1 = cstr1.replace(/\[\/X\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[J\]/g,'
  • 接驳
  • \n
  • '); cstr1 = cstr1.replace(/\[\/J\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[XC\]/g,'
  • 下车
  • \n'); cstr1 = cstr1.replace(/\[\/XC\]/g,'\n'); cstr1 = cstr1.replace(/\[\/S\]\[T\]/g,'\n
  • '); cstr1 = cstr1.replace(/\[S\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[\/S\]/g,'
  • \n'); cstr1 = cstr1.replace(/\[D1\]/g,''); cstr1 = cstr1.replace(/\[\/D1\]/g,''); cstr1 = cstr1.replace(/\[D2\]/g,''); cstr1 = cstr1.replace(/\[\/D2\]/g,''); cstr1 = cstr1.replace(/\[D3\]/g,''); cstr1 = cstr1.replace(/\[\/D3\]/g,''); var num1 = cstr1.indexOf('\[QC\]'); var num2 = cstr1.indexOf('\[\/QC\]'); var cstr21 = ''; var cstr31 = '
    '; var cstr32 = ''; if (num2-num1>0 && num1-0>=0) { cstr21 = cstr1.substring(num1-0+4,num2); cstr21 = ''; cstr31 += '去 程'; cstr32 += '
    ' + cstr21 + '
    '; } num1 = cstr1.indexOf('\[FC\]'); num2 = cstr1.indexOf('\[\/FC\]'); if (num2-num1>0 && num1-0>=0) { cstr21 = cstr1.substring(num1-0+4,num2); cstr21 = ''; cstr31 += '返 程'; cstr32 += '
    ' + cstr21 + '
    '; m_iffc = 1; }else{ cstr32 += '
    '; } var cstr3 = cstr31 + '
    ' + cstr32 + '
    '; var obj1 = document.getElementById('div_4'); var obj2 = document.getElementById('mytext1'); obj2.value = cstr3; obj1.innerHTML = cstr3; } function show_info2(myflag) { if (m_iffc - 0 == 0) { return; }else{ var obj11 = document.getElementById('span_qc'); var obj12 = document.getElementById('div_qc'); var obj21 = document.getElementById('span_fc'); var obj22 = document.getElementById('div_fc'); if (myflag - 1 == 0) { obj11.className = 'span_unselect'; obj21.className = 'span_select'; obj12.style.display = 'none'; obj22.style.display = 'block'; }else{ obj11.className = 'span_select'; obj21.className = 'span_unselect'; obj12.style.display = 'block'; obj22.style.display = 'none'; } } }