		   //XMLHttpRequest 連結
			var xmlhttp = false;
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e2) {
					xmlhttp = false;
				}
			}
			if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
				xmlhttp = new XMLHttpRequest();
			}
            
			function Ajax_pass(data,url,kind){    
				
				xmlhttp.open("POST",url+encodeURI(data),true);//定義傳遞的位置、方式
				xmlhttp.send(null);//傳遞變數
			
				xmlhttp.onreadystatechange=function(){//當資料回傳成功
					if (xmlhttp.readyState==4){//回傳狀態
						if (xmlhttp.status==200){//回傳狀態編號
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}
			function Ajax_passd(obj,url,kind){
					Ajax_pass(obj.value,url,kind);
			}
			
			
			
			function Ajax(data,url,kind){    
				
				xmlhttp.open("POST",url+encodeURI(data),true);//定義傳遞的位置、方式
				xmlhttp.send(null);//傳遞變數
			
				xmlhttp.onreadystatechange=function(){//當資料回傳成功
					if (xmlhttp.readyState==4){//回傳狀態
						if (xmlhttp.status==200){//回傳狀態編號
							if(xmlhttp.responseText=="<img src=image/check_right.gif>"){
							  document.AddForm.B1.disabled = false;
							}else{
							  document.AddForm.B1.disabled = true;
							}
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}
			function chkUserName(obj,url,kind){
					Ajax(obj.value,url,kind);
			}

			function Ajax2(data,data2,url,kind){ 
				xmlhttp.open("POST",url+encodeURI(data)+"&password2="+encodeURI(data2),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}


			function chkUserName2(url,kind){
				    var tf1 = document.AddForm;
					Ajax2(tf1.password.value,tf1.password2.value,url,kind);     
			}

			function chkUserName3(){
				document.AddForm.B1.disabled = true;   
			}
            
            
			function Ajax5(data,data2,url,kind){ 
				xmlhttp.open("POST",url+encodeURI(data)+"&docname="+encodeURI(data2),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}
			function chkUserName5(url,kind){
				    var tf1 = document.AddForm;
					Ajax5(tf1.username.value,tf1.docname.value,url,kind);     
			}


			function ajax_ck(url,kind){ 
				xmlhttp.open("POST",encodeURI(url),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}

			function ajax_ck_nokind(url){ 
				xmlhttp.open("POST",encodeURI(url),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							//document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}

			function ajax_ck_nokind2(data,url){ 
				xmlhttp.open("POST",url+encodeURI(data),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							//document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}

			function cknokind(obj,url){
					ajax_ck_nokind2(obj.value,url);
			}

			function ajax_ck3(url,kind){ 
				xmlhttp.open("POST",encodeURI(url),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
							location.reload();
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}

			function reload(){
			  location.reload();
			}

			
			function ajax_ck5(url,kind){ 
				xmlhttp.open("POST",encodeURI(url),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}

		   function ajax_ck2_a(date,url,kind){ 
				xmlhttp.open("POST",encodeURI(url)+encodeURI(data),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}

		  function ajax_ck2(obj,url,kind){
				  ajax_ck2_a(obj.value,url,kind);
		  }


		    function Ajaxpass(data,url,kind){    
				xmlhttp.open("POST",url+encodeURI(data),true);//定義傳遞的位置、方式
				xmlhttp.send(null);//傳遞變數
			
				xmlhttp.onreadystatechange=function(){//當資料回傳成功
					if (xmlhttp.readyState==4){//回傳狀態
						if (xmlhttp.status==200){//回傳狀態編號
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}
			function chkpass(obj,url,kind){
					Ajaxpass(obj.value,url,kind);
			}  
			function chkpass2(obj,url,kind){
					Ajaxpass(obj,url,kind);
			}    



			function aj_counter(data,data2,data3,url,kind){ 
				xmlhttp.open("POST",url+"?way"+encodeURI(data)+"&sourc="+encodeURI(data2)+"&path="+encodeURI(data3),true);
				xmlhttp.send(null);
				xmlhttp.onreadystatechange=function(){
					if (xmlhttp.readyState==4){
						if (xmlhttp.status==200){
							document.getElementById(kind).innerHTML=xmlhttp.responseText;
						}else{
							alert("連結錯誤，請工程師查明!");
						}
					}
				}
			}

		    function disReload(){
				var thisForm = document.AddForm;
				thisForm.B1.disabled=true;
            }
