//AJAX,数据发送到中奖页面，增加记录
var xmlHttp; 
function createXMLHttpRequest(){ 
	if(window.ActiveXObject) 
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
	else if(window.XMLHttpRequest) 
		xmlHttp = new XMLHttpRequest(); 
} 
function startRequest(title){ 
	createXMLHttpRequest(); 
	xmlHttp.open("GET","submenu.asp?title=" + title,true); 
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.send(null); 
}
function handleStateChange(){
	if(xmlHttp.readyState == 4 && xmlHttp.status == 200) 
		document.getElementById("submenu").innerHTML = xmlHttp.responseText;
}

function startRequest2(BigClassName){ 
	createXMLHttpRequest(); 
	xmlHttp.open("GET","diy_lsm.asp?BigClassName=" + BigClassName,true); 
	xmlHttp.onreadystatechange = handleStateChange2;
	xmlHttp.send(null); 
}
function handleStateChange2(){
	if(xmlHttp.readyState == 4 && xmlHttp.status == 200) 
		document.getElementById("prodiy").innerHTML = xmlHttp.responseText;
}

function startRequest3(SmallClassName){ 
	createXMLHttpRequest(); 
	xmlHttp.open("GET","diy_lsm2.asp?SmallClassName=" + SmallClassName,true); 
	xmlHttp.onreadystatechange = handleStateChange3;
	xmlHttp.send(null); 
}
function handleStateChange3(){
	if(xmlHttp.readyState == 4 && xmlHttp.status == 200) 
		document.getElementById("diypro").innerHTML = xmlHttp.responseText;
}
//设计图片
function startRequest4(BigClassName,pid){ 
	createXMLHttpRequest(); 
	xmlHttp.open("GET","diy_lsm3.asp?BigClassName=" + BigClassName + "&pid=" + pid,true); 
	xmlHttp.onreadystatechange = handleStateChange4;
	xmlHttp.send(null); 
}
function handleStateChange4(){
	if(xmlHttp.readyState == 4 && xmlHttp.status == 200) 
		document.getElementById("spider").innerHTML = xmlHttp.responseText;
}

function startRequest5(pid){ 
	createXMLHttpRequest(); 
	xmlHttp.open("GET","diy_cima.asp?pid=" + pid,true); 
	xmlHttp.onreadystatechange = handleStateChange5;
	xmlHttp.send(null); 
}
function handleStateChange5(){
	if(xmlHttp.readyState == 4 && xmlHttp.status == 200) 
		document.getElementById("cma").innerHTML = xmlHttp.responseText;
}