contentText = new Array();
contentText[0] = new Array("Please select your product type first, then family, then model, and click submit.", "Submit", "Please Select a platform", "Please Select a product", "Please Select a product type");
contentText[1] = new Array("Please select your product type first, then family, then model, and click submit.", "Submit", "Please Select a platform", "Please Select a product", "Please Select a product type");
contentText[2] = new Array("Please select your product type first, then family, then model, and click submit.", "Submit", "Please Select a platform", "Please Select a product", "Please Select a product type");
contentText[3] = new Array("Please select your product type first, then family, then model, and click submit.", "Submit", "Please Select a platform", "Please Select a product", "Please Select a product type");
contentText[4] = new Array("Please select your product type first, then family, then model, and click submit.", "Submit", "Please Select a platform", "Please Select a product", "Please Select a product type");
contentText[5] = new Array("Please select your product type first, then family, then model, and click submit.", "Submit", "Please Select a platform", "Please Select a product", "Please Select a product type");
contentText[6] = new Array("Please select your product type first, then family, then model, and click submit.", "Submit", "Please Select a platform", "Please Select a product", "Please Select a product type");
contentText[7] = new Array("请首先选择产品类型，然后是系列和具体型号，最后点击提交。", "提 交", "请选择系列", "请选择产品", "请选择产品类别");
contentText[8] = new Array("請首先選擇產品類型，然後是系列和具體型號，最後點擊提交。", "提 交", "請選擇系列", "請選擇產品", "請選擇產品類別");

//类别设置函数
function showCategory()
{
	Category = document.getElementById("Text8");
	var Categoryshu = PC_Category.length;
	//alert(Categoryshu);
	for(n=0; n<Categoryshu; n++)
	{
		Category.options[n]= new Option(PC_Category[n][0], PC_Category[n][1]);
	}
}


function getpromanual(){
 var LungShow = document.getElementById("SetLung").value;
 var proname = document.getElementById("product").value;
	 if(selectproduct(LungShow))
	 {
			 document.getElementById("manual").innerHTML = '<iframe frameborder="0" allowtransparency="true" scrolling="no" style="margin-top:31px;  width:740px; height:100px;" src="include/manual.php?pro='+proname+'&lug='+LungShow+'"></iframe>';
 
	}

}
function selectproduct(lungvalue){
		
		switch(lungvalue){
		case"sc" : lungvalue =7;break;
		case"tw" : lungvalue =8;break;
		default : lungvalue =1;
		}
		 if (document.getElementById("Family").options.length < 1) {
			document.getElementById("Family").options.length = 0;
			alert(contentText[lungvalue][2]);
			return false;
		}
		/* Check for product type is Selected - if not, alert and return */
		if (document.getElementById("Family").options.selectedIndex < 0) {
			alert(contentText[lungvalue][4]);
			return false;
		}
		if (document.getElementById("product").options.selectedIndex == -1) {
			alert(contentText[lungvalue][3]);
			return false;
		}
		

return true;
	}
showCategory();
