host = 'http://' + location.host + '/';
//下载计数
function download(prodType){
	if( 'netbook' == prodType) {window.open(host + "index.php?mod=product&act=netbook");return;	}
	if( 'school' == prodType) {
		$.ajax({
		url: host + "index.php?mod=zhuanti&act=teachersday",
		type: 'GET',		
		timeout:30000,		
		success: function(msg){
			//alert(msg);
			//$('#WPSDownNum').html(msg);
		}
		});	
		return;	
	}
    window.open(host + "index.php?mod=product&act=guide");
	$.ajax({
		url: host + "index.php?mod=download&act=DownWPS",
		type: 'GET',		
		timeout:30000,		
		success: function(msg){
			$('#WPSDownNum').html(msg);
		}
	});	   
}



function tuijian(i){
		var tui_1 = document.getElementById("tui_1");
		var tui_2 = document.getElementById("tui_2");
		var tui_3 = document.getElementById("tui_3");
		
		var tuishow_1 = document.getElementById("tuishow_1");
		var tuishow_2 = document.getElementById("tuishow_2");
		var tuishow_3 = document.getElementById("tuishow_3");
	if(i==1){
		tui_1.className = "tui_now";
		tuishow_1.style.display = "block";
		
		tui_2.className = "tui_not";
		tuishow_2.style.display = "none";
		
		tui_3.className = "tui_not";
		tuishow_3.style.display = "none";

	}else if(i==2){
		tui_1.className = "tui_not";
		tuishow_1.style.display = "none";
		
		tui_2.className = "tui_now";
		tuishow_2.style.display = "block";
		
		tui_3.className = "tui_not";
		tuishow_3.style.display = "none";
	}else{
        tui_1.className = "tui_not";
		tuishow_1.style.display = "none";
		
		tui_2.className = "tui_not";
		tuishow_2.style.display = "none";
		
		tui_3.className = "tui_now";
		tuishow_3.style.display = "block";
	}
}

 	function OnbulrQuestion(){
			if (document.getElementById("myquestion").value.replace(/(^\s*)|(\s*$)/g, "")==""){
					document.getElementById("myquestion").value="请输入问题";
			}
	}
 	function onclickQuestion(){
			keyword=document.getElementById("myquestion").value;
			if (keyword.replace(/(^\s*)|(\s*$)/g, "")=="请输入问题"){
					document.getElementById("myquestion").value="";
			}
	}
	function onsubmitQuestion(){ 
			keyword=document.getElementById("myquestion").value;
			if (keyword.replace(/(^\s*)|(\s*$)/g, "")=="请输入问题"){
					document.getElementById("myquestion").value="";
					return true;
			}
	}
	
	
	