﻿// JScript 檔


ajax_UserControls_SearchKeywords_index();

var obj_UserControls_SearchKeywords_index;

function ajax_UserControls_SearchKeywords_index()
{
			     
     if (window.XMLHttpRequest) 
     { 
          // Mozilla, Safari,...
          obj_UserControls_SearchKeywords_index = new XMLHttpRequest();
          if (obj_UserControls_SearchKeywords_index.overrideMimeType) {
               obj_UserControls_SearchKeywords_index.overrideMimeType('text/xml');
          }
     } 
     else if (window.ActiveXObject) 
     {  
         // IE
	     try
	     {
		     obj_UserControls_SearchKeywords_index = new ActiveXObject("Msxml2.XMLHTTP");
	     }
	     catch(e)
	     {
		     try
		     {
			     obj_UserControls_SearchKeywords_index = new ActiveXObject("Microsoft.XMLHTTP");
		     }
		     catch(e1)
		     {
			     obj_UserControls_SearchKeywords_index = null;
		     }
	     }
	  }
				
	  if(obj_UserControls_SearchKeywords_index!=null)
	  {
	        var strData = "code=libniz";
			obj_UserControls_SearchKeywords_index.onreadystatechange = PR_ajax_UC_SK_index;
			obj_UserControls_SearchKeywords_index.open("POST", "/UserControls/SearchKeywords/ajax_index.aspx",  true);
			obj_UserControls_SearchKeywords_index.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
			obj_UserControls_SearchKeywords_index.send(strData);
                        
			
	  }
	  return false;
}

function PR_ajax_UC_SK_index()
{
        
	if(obj_UserControls_SearchKeywords_index.readyState == 4)
	{
                
		if(obj_UserControls_SearchKeywords_index.status == 200)
		{
                        
			var retval=obj_UserControls_SearchKeywords_index.responseText;
			
			document.getElementById('div_UC_SK_index').innerHTML = retval;
                        
		}
		else
		{
			alert("執行錯誤!");
		}
	}
}




