function include(script_filename) {
    document.write('<' + 'script');
    document.write(' language="javascript"');
    document.write(' type="text/javascript"');
    document.write(' src="' + script_filename + '">');
    document.write('</' + 'script' + '>');
}
include('/js/common.js');
include('/js/prototype.js');
var showflag=true;
function hidden(ProductTypeID){
	hiddencode="if(showflag){document.getElementById('ProductType"+ProductTypeID+"').style.display='none';}";
	window.setTimeout(hiddencode,500);
}
function show(ProductTypeID,y){
	showcode="document.getElementById('ProductType"+ProductTypeID+"').style.display='block';";
	code2="document.getElementById('ProductType"+ProductTypeID+"').style.top="+y+"+'px'";
	window.setTimeout(showcode+code2,500);
}
//leftMENU.cfm
function showleftMENU(){
loadAjaxData("/include/AjaxIndex.cfm?showleftMENU='ok'",{},returnShowleftMENU,errorShowleftMENU);
}
function returnShowleftMENU(r){
	document.getElementById("leftmenu").innerHTML=r.responseText;
}
function errorShowleftMENU(){
document.getElementById("leftmenu").innerHTML="加载页面超时，请重试！!";
}

function showtopsearch(){
loadAjaxData("/include/AjaxIndex.cfm?showtopsearch='ok'",{},returnShowtopsearch,errorShowtopsearch);
}

function returnShowtopsearch(r){
	document.getElementById("topsearch").innerHTML=r.responseText;
}

function errorShowtopsearch(){
document.getElementById("topsearch").innerHTML="加载页面超时，请重试！!";
}
//ProductType
var TopTypeID=0;
function showProductType(ProductTopTypeID){
	TopTypeID=ProductTopTypeID;
	loadIMG="<img src='/images/loading.gif'/>"
	html=document.getElementById("ProductType"+TopTypeID).innerHTML;
	if(""==html | loadIMG==html | html=="error"){
		//document.getElementById("ProductType"+TopTypeID).innerHTML=loadIMG;
		loadAjaxData("/include/AjaxIndex.cfm?showProductType='ok'&TopTypeID="+TopTypeID,{},returnShowProductType,errorShowProductType);
	}
}
function returnShowProductType(r){
	document.getElementById("ProductType"+TopTypeID).innerHTML=r.responseText;
}
function errorShowProductType(){
document.getElementById("ProductType"+TopTypeID).innerHTML="error";
}

//bottom.cfm
function showbottom(){
loadAjaxData("/include/AjaxIndex.cfm?showbottom='ok'",{},returnShowbottom,errorShowbottom);
}
function returnShowbottom(r){
	document.getElementById("bottom").innerHTML=r.responseText;
}
function errorShowbottom(){
document.getElementById("bottom").innerHTML="加载页面超时，请重试！!";
}