<!--右邊選項-->
function sendproduct(id,mem,lan){
 var xmlHttp;
 var url='../ajax/product.php?id='+id+'&mem='+mem+'&lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('product_id').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

<!--右邊選項結束-->
<!--超連結-->
function getValue(tourl)
{
  location.href=tourl;
} 
<!--超連結結束-->
<!--右邊選項-->
function product(lan){
 var xmlHttp;
 var url='../ajax/indexproduct1.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('indexproduct').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

<!--右邊選項結束-->
<!--裡面圖示及小選項-->
function showproduct(id,lan,mov){
 var xmlHttp;
 var url='../ajax/productimages.php?id='+id+'&lan='+lan+'&mov='+mov;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('product_image').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--裡面圖示及小選項結束-->
<!--首頁ready to sell-->
function showsell(lan){
 var xmlHttp;
 var url='../ajax/sell.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('psell').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--首頁ready to sell結束-->
<!--首頁Product Height light-->
function showphight(lan){
 var xmlHttp;
 var url='../ajax/toproduct_detail.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('phlight').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--首頁Product Height light結束-->
<!--ready to sell-->
function showtosell(lan){
 var xmlHttp;
 var url='../ajax/tosell.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('tosell').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--ready to sell結束-->
<!--Exhibition-->
function showexhibit(lan){
 var xmlHttp;
 var url='../ajax/toexhibit.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('toexhibit').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--Exhibition結束-->
<!--Holiday-->
function showholiday(lan){
 var xmlHttp;
 var url='../ajax/toholiday.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('toholiday').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--Holiday結束-->
<!--Holiday-->
function indexcompany(lan){
 var xmlHttp;
 var url='../ajax/indexcompany.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('indexcompany').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--Holiday結束-->
<!--顯示台灣時間-->
var now,hours,minutes,seconds,timeValue;
function showtime(){

now = new Date();
year = now.getFullYear();
mon = now.getMonth()+1;
day = now.getDate();
hours = now.getHours();
minutes = now.getMinutes();
seconds = now.getSeconds();
timeValue = year+"/";
timeValue += ((mon < 10) ? " 0" : " ") + mon + "/";
timeValue += ((day < 10) ? " 0" : " ") + day + " ";
timeValue += ((hours > 24) ? hours - 12 : hours) + ":";
timeValue += ((minutes < 10) ? " 0" : " ") + minutes + ":";
timeValue += ((seconds < 10) ? " 0" : " ") + seconds + " ";
clock.innerHTML =timeValue;
setTimeout("showtime()",1000);
}

<!--顯示台灣時間結束-->
<!--SUPPORT部分-->
function support_detail(id,p,ptype,lan,show){
 var xmlHttp;
 var url='../ajax/support_detail4.php?id='+id+'&page='+p+'&ptype='+ptype+'&lan='+lan+'&show='+show;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('support').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--SUPPORT部分結束-->
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function sendstore(){
 var xmlHttp;
 var id=document.ttt.password.value;
 var lan=document.ttt.lan.value;
 var url='../ajax/sess.php?id='+id+'&lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('passid').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}

 function outsideWindowtest(id,lan) {
    var win = new Window("win2", {url: '../ajax/supportopen.php?id='+id+'&lan='+lan,className: "alphacube", top:200, left:300, width:600, height:400, title:"SUPPORT",
                          maximizable:true, minimizable:true});
    win.setDestroyOnClose();
    win.show();

  }

function winopens(file){
    window.open(file, "newone", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=400");
  }

<!--展覽場次-->
function display(lan){
 var xmlHttp;
 var url='../ajax/display.php?lan='+lan;
 if (window.ActiveXObject) { 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 
 xmlHttp.onreadystatechange = function(){
  if(xmlHttp.readyState == 4){
   document.getElementById('display').innerHTML = xmlHttp.responseText;
  }
 }

 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
<!--展覽場次結束-->
