﻿function shipclass(sdiv,shipindex,onclass,outclass)
	{
		shipindex=eval(shipindex);
		if(shipindex.length > 0)
		{
			for(i=0;i<shipindex.length;i++)
			{
				shipindex[i].className = outclass;
				if (shipindex[i] == sdiv)
				{
					shipindex[i].className=onclass;
					 
				}
			}
		}
		
	}
function Ajax(odiv,para)
	{
	var xhrObj=null;
	if(window.XMLHttpRequest)
	{
		xhrObj=new XMLHttpRequest();
	}
	else if(window.ActiveXObject)
	{
		try{
		xhrObj=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e1)
		{
			try{
			xhrObj=new ActiveXObject("MSXML2.XMLHTTP");
			}
			catch(e2){
				try{
				xhrObj=new ActiveXObject("MSXML3.XMLHTTP");
				}
				catch(e3){
				alert("创建Ajax失败："+e3)
				}
			}
		}
	}
	else
	{
		alert("未能识别的浏览器");
	}
	var ship_div = eval(odiv);
	
	xhrObj.open("GET","/ship_Market/ship_info.asp?id="+String(para)+"&fresh="+Math.random(), true); 
	xhrObj.onreadystatechange = function()
	{ 
	　 if (xhrObj.readyState == 4) 
	   { 
		　 	if (xhrObj.status == 200)
				{ 
					if(xhrObj.responseText != "")
					{
						var sOption = new Array(); 
						ship_div.innerHTML = xhrObj.responseText;
						
					}
					else
					{
						ship_div.innerHTML = "";
					}
				}
		 }
     }
	
	xhrObj.send(null); 	 

 }
 function ssss(aa){
	 
	 alert(aa);
	 }