﻿//新進訂單
function addorder() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=addorder';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("addorder").innerHTML=xmlhttp.responseText;
myadmin_id_url("addorder"); //賦予ID在清單連結
}}
}


//網站統計
function statistics() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=statistics';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("statistics").innerHTML=xmlhttp.responseText;
myadmin_id_url("statistics"); //賦予ID在清單連結
}}
}


//左側熱門商品
function hot() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=hot';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("hot").innerHTML=xmlhttp.responseText;
myadmin_id_url("hot"); //賦予ID在清單連結
}}
}


//左側推薦商品
function tuijian() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=tuijian';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("tuijian").innerHTML=xmlhttp.responseText;
myadmin_id_url("tuijian"); //賦予ID在清單連結
}}
}



//左側最新商品
function xinpin() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=xinpin';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("xinpin").innerHTML=xmlhttp.responseText;
myadmin_id_url("xinpin"); //賦予ID在清單連結
}}
}


//左側特價商品
function tejia() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=tejia';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("tejia").innerHTML=xmlhttp.responseText;
myadmin_id_url("tejia"); //賦予ID在清單連結
}}
}


//網站調查
function votemu() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=votemu';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("votemu").innerHTML=xmlhttp.responseText;
myadmin_id_url("votemu"); //賦予ID在清單連結
}}
}


//銷售排行
function rank() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=rank';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("rank").innerHTML=xmlhttp.responseText;
myadmin_id_url("rank"); //賦予ID在清單連結
}}
}

//商品分類
function showmidcode2(buyok){
//if(document.getElementById(buyok).style.display=="none"){
document.getElementById(buyok).style.display="";

//} else {
//document.getElementById(buyok).style.display="none"; 
//}
}
function classify() {

//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=classify&larcode='+escape(larcode)+'&midcode='+escape(midcode)+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("classify").innerHTML=xmlhttp.responseText;
myadmin_id_url("classify"); //賦予ID在清單連結
}}
}


//會員登入
function checkuserform(){
	if (document.loginbox.userid.value.length ==0){
		alert("出錯了，您沒有填寫會員帳號。");
		document.loginbox.userid.focus();
		return false;
	}
	if (document.loginbox.password.value.length==0){
		alert("出錯了，您沒有填寫會員密碼。");
		document.loginbox.password.focus();
		return false;
	}
        if (document.loginbox.yzm.value.length==0){
		alert("出錯了，您沒有填寫驗證碼。");
		document.loginbox.yzm.focus();
		return false;
	}
	return true;
}	

function l_login() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=l_login';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("l_login").innerHTML=xmlhttp.responseText;
myadmin_id_url("l_login"); //賦予ID在清單連結
if (getCookie(cookienum+'buyok%5Fuserid')==undefined || getCookie(cookienum+'buyok%5Fuserid')==""){
yzmgo('16','','login.asp');
}
}}
}


//上方選單按鈕
function top_button() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=top_button';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("top_button").innerHTML=xmlhttp.responseText;
myadmin_id_url("top_button"); //賦予ID在清單連結
}}
}


//最新訊息
function information() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=information';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("information").innerHTML=xmlhttp.responseText;
myadmin_id_url("information"); //賦予ID在清單連結
}}
}


//右側特價商品
function bar_tejia() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=bar_tejia';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("bar_tejia").innerHTML=xmlhttp.responseText;
myadmin_id_url("bar_tejia"); //賦予ID在清單連結
}}
}


//右側熱門商品
function bar_hot() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=bar_hot';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("bar_hot").innerHTML=xmlhttp.responseText;
myadmin_id_url("bar_hot"); //賦予ID在清單連結
}}
}


//右側推薦商品
function bar_tuijian() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=bar_tuijian';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("bar_tuijian").innerHTML=xmlhttp.responseText;
myadmin_id_url("bar_tuijian"); //賦予ID在清單連結
}}
}


//右側最新商品
function bar_xinpin() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=bar_xinpin';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("bar_xinpin").innerHTML=xmlhttp.responseText;
myadmin_id_url("bar_xinpin"); //賦予ID在清單連結
}}
}


//會員中心選單
function user_center_menu() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=user_center_menu';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("user_center_menu").innerHTML=xmlhttp.responseText;
myadmin_id_url("user_center_menu"); //賦予ID在清單連結
}}
}



//alert(xmlhttp.readyState);

//排序
function compositor(a,b,c,userid) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'compositor.asp?name='+a+'&b='+b+'&ac='+c+'&g='+g+'&userid='+userid+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
darkBody('請稍候...');
   if(xmlhttp.status==200){
     if (xmlhttp.responseText.split('-->')[1]!=-1)setTimeout('window.location.reload();',1500);
    //alert(xmlhttp.responseText.split('-->')[1])
   }
}}
}


//文字左右調
function txtcompositor(a,b,c,userid,d,num) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'compositor.asp?name='+a+'&b='+b+'&ac='+c+'&userid='+userid+'&d='+d+'&g='+g+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
darkBody('請稍候...');
   if(xmlhttp.status==200){
     if (xmlhttp.responseText.split('-->')[1]!=-1){
      a+'();';
       for (var is=1;is<Math.ceil(num)+1;is++){
        if (document.getElementById(b+is)!=null){
         if (c=='left')document.getElementById(b+is).style.marginLeft=(parseInt(document.getElementById(b+is).style.marginLeft,10)-2).toString() + "px";
         if (c=='right')document.getElementById(b+is).style.marginLeft=(parseInt(document.getElementById(b+is).style.marginLeft,10)+2).toString() + "px";
        }
       }
      setTimeout('lightBody();',1000);
     }
   }
}}
}


//選單按鈕預設值排序top_button_load
function top_button_load_compositor(a,b,c,userid) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'compositor.asp?name='+a+'&b='+b+'&ac='+c+'&g='+g+'&userid='+userid+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
   if(xmlhttp.status==200){
    top_button_num_compositor(a,b.split('_load')[0],c,userid);
   }
}}
}


//選單按鈕顯示值排序top_button_num
function top_button_num_compositor(a,b,c,userid) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'compositor.asp?name='+a+'&b='+b+'&ac='+c+'&g='+g+'&userid='+userid+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
darkBody('請稍候...');
   if(xmlhttp.status==200){
     top_button();
     setTimeout('lightBody();',1000);
   }
}}
}


//刪除自訂
function del_since_add(a,b,c) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skin_choice.asp?p='+a+'&b='+b+'&autoidtxt='+c+'&g='+g+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
darkBody('請稍候...');
   if(xmlhttp.status==200){
     if (xmlhttp.responseText.split('-->')[1]!=-1)setTimeout('window.location.reload();',0000);
   }
}}
}


//開關選單按鈕
function del_top_button_num(a,b,c,d) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skin_choice.asp?p='+a+'&b='+b+'&c='+c+'&d='+d+'&g='+g+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
darkBody('請稍候...');
   if(xmlhttp.status==200){
     if (xmlhttp.responseText.split('-->')[1]!=-1)setTimeout('window.location.reload();',0000);
   }
}}
}


//開關左右側項目
function del_left_right(p,a,b,c,d) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skin_choice.asp?p='+p+'&a='+a+'&b='+b+'&c='+c+'&d='+d+'&g='+g+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
darkBody('請稍候...');
   if(xmlhttp.status==200){
     if (xmlhttp.responseText.split('-->')[1]!=-1)setTimeout('window.location.reload();',0000);
   }
}}
}


//左右側項目預設值排序
function left_right_load_compositor(a,b,c,userid) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'compositor.asp?name='+a+'&b='+b+'&ac='+c+'&userid='+userid+'&g='+g+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
   if(xmlhttp.status==200){
    left_right_compositor(a,b.split('_load')[0],c,userid);
   }
}}
}


//左右側項目顯示值排序
function left_right_compositor(a,b,c,userid) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'compositor.asp?name='+a+'&b='+b+'&ac='+c+'&userid='+userid+'&g='+g+'';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
darkBody('請稍候...');
   if(xmlhttp.status==200){
    setTimeout('window.location.reload();',0000);
   }
}}
}


//推廣登入
function myadmin_login() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'../skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=myadmin_login';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("myadmin_login").innerHTML=xmlhttp.responseText;
myadmin_id_url("myadmin_login"); //賦予ID在清單連結
if (getCookie(cookienum+'myadminlogin')==undefined || getCookie(cookienum+'myadminlogin')==""){
yzmgo('16','../','mylogin.asp');
}
}}
}

//推廣會員選單
function my_menu(mm) {

//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&mm='+mm+'&skinshow=my_menu';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("my_menu").innerHTML=xmlhttp.responseText;
myadmin_id_url("my_menu"); //賦予ID在清單連結
r_center_menu("my_menu");
}}
}

//管理員登入
function adminlogin_login(id,c) {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?skinshow=adminlogin_login&id='+escape(id)+'&c='+c;
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("adminlogin_login").innerHTML=xmlhttp.responseText;
if (document.adminlogin.username.value.length==0){document.adminlogin.username.focus();}
}}
}


//動態分類選單
function topmenu() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&skinshow=topmenu';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("topmenu").innerHTML=xmlhttp.responseText;
myadmin_id_url("topmenu"); //賦予ID在清單連結
}}
}

//廠商分類
function shopnot() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&larcode='+escape(larcode)+'&midcode='+escape(midcode)+'&smacode='+escape(smacode)+'&skinshow=shopnot';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("shopnot").innerHTML=xmlhttp.responseText;
myadmin_id_url("shopnot"); //賦予ID在清單連結
}}
}

//三級分類
function smacodesk() {
//瀏覽器 Firefox, Opera 8.0+, Safari, Internet Explorer 
var xmlhttp;
try { xmlhttp=new XMLHttpRequest(); }catch (e) {  try {xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e) {try {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e) { alert("Your browser does not support AJAX!"); return false;}}}
var strURL=mymap+'skindata.asp?q='+q+'&g='+g+'&c='+c+'&larcode='+escape(larcode)+'&midcode='+escape(midcode)+'&skinshow=smacodesk';
xmlhttp.open('GET',strURL+'&err999='+escape(new Date()),true);
xmlhttp.send(null);  
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
document.getElementById("smacodesk").innerHTML=xmlhttp.responseText;
myadmin_id_url("smacodesk"); //賦予ID在清單連結
}}
}
