function SendBook(S_Type){
   var SendName=document.SendBook.SendName.value;
   var SendPhone=document.SendBook.SendPhone.value;
   var SendMail=document.SendBook.SendMail.value;
   var SendRead=document.SendBook.SendRead.value;
   var xmlhttp;
   try
   {
     xmhhttp=new ActiveXObjec("Msxml2.XMLHTTP");
	}
	catch (e)
	{
	   try{
	     xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		 }
	   catch (e){
	         try{
			     xmlhttp=new XMLHttpRequest();
				 }
			catch (e){}
		}
	}
	xmlhttp.onreadystatechange=function()
	{
	 if(4==xmlhttp.readyState)
	 {
	   if(200==xmlhttp.status)
	   {
		        document.getElementById("SenBookErr").innerHTML=xmlhttp.responseText;
				document.SendBook.SendName.value="";
				document.SendBook.SendPhone.value="";
				document.SendBook.SendMail.value="";
				document.SendBook.SendRead.value="";
		        return false;
		}	
		else
		{
		alert(xmlhttp.status);
		}
	}
 }
 var url="Include/AspAjax.asp?S_Type="+escape(S_Type)+"&SendName="+escape(SendName)+"&SendPhone="+escape(SendPhone)+"&SendMail="+escape(SendMail)+"&SendRead="+escape(SendRead)+"&t="+new Date().getTime();
	xmlhttp.open("get",url);
	xmlhttp.send(null);	
	}

function OpenDialog(sURL, iWidth, iHeight)
{
   var oDialog = window.open(sURL, "_EditorDialog", "width=" + iWidth.toString() + ",height=" + iHeight.toString() + ",resizable=no,left=0,top=0,scrollbars=no,status=no,titlebar=no,toolbar=no,menubar=no,location=no");
   oDialog.focus();
}

function ProSort(S_Type,Sid,Str)
{
  document.ProSort.SortName.value=Str;
  document.ProSort.SortID.value=Sid;
  document.ProSort.S_Type.value=S_Type;
}