
function netAdCn00000100SelectJs()
{
	selectedURL = document.netAdCn00000100SelectForm.netAdCn00000100Select[document.netAdCn00000100SelectForm.netAdCn00000100Select.selectedIndex].value ;
	//alert(selectedURL);
	if( selectedURL != "" )
	{
		var winOjbect = window.open(selectedURL,'_blank','');
		winOjbect.focus();
	}
}

function netAdCn00000300SelectJs()
{
	selectedURL = document.netAdCn00000300SelectForm.netAdCn00000300Select[document.netAdCn00000300SelectForm.netAdCn00000300Select.selectedIndex].value ;
	//alert(selectedURL);
	if( selectedURL != "" )
	{
		var winOjbect = window.open(selectedURL,'_blank','');
		winOjbect.focus();
	}
}


function searchInfoSubmit()
{
	if( document.searchForm.keyword.value.length < 1 )
	{ 
		alert('敬告：请填写要搜索的关键字!') ;
		document.searchForm.keyword.focus() ;
		return false ;
	}
	if(document.searchForm.searchType[document.searchForm.searchType.selectedIndex].value == "info" )
	{
		document.searchForm.action = "../cn/infoList.php" ;
	}
	document.searchForm.submit() ;
}


function dispalyProductTypeOption( language_version , selectedId )
{
	var resultStr="";
	for( var i = 0 ; i < productTypeArray.length ; i++ )
	{
		if( productTypeArray[i][0] == language_version && productTypeArray[i][1] == '' )
		{
			resultStr = resultStr + '<option value="' + productTypeArray[i][2] + '" ' ;
			if( productTypeArray[i][2] == selectedId )
			{
				resultStr = resultStr + ' selected ' ;
			}
			resultStr = resultStr + ' >' + productTypeArray[i][3] + '</option>';

			for( var j = 0 ; j < productTypeArray.length ; j++ )
			{
				if( productTypeArray[j][0] == language_version && productTypeArray[j][1] == productTypeArray[i][2] )
				{
					resultStr = resultStr + '<option value="' + productTypeArray[j][2] + '" ' ;
					if( productTypeArray[j][2] == selectedId )
					{
						resultStr = resultStr + ' selected ' ;
					}
					resultStr = resultStr + ' >&nbsp;&nbsp;&nbsp;&nbsp;' + productTypeArray[j][3] + '</option>';					
				}				
			}			
		}		
	}
	document.write(resultStr) ;
}


function dispalyProductTypeSearch( language_version , belong_to  )
{
	var resultStr="";
	for( var i = 0 ; i < productTypeArray.length ; i++ )
	{
		if( productTypeArray[i][0] == language_version && productTypeArray[i][1] == '' )
		{		
			resultStr = resultStr + '<table width="173" height="25" border="0" cellpadding="0" cellspacing="0">' ;			
			resultStr = resultStr + '<tr>' ;			
			resultStr = resultStr + ' <td width="14" valign="top"><img src="../images/baby_r33_c40.jpg" width="8" height="15" align="absmiddle"></td>' ;			
			resultStr = resultStr + '<td width="159"><a href="../cn/productList.php?product_type_id=' + productTypeArray[i][2] + '"  class="b1"><strong>' + productTypeArray[i][3] + '</strong>：</a><img src="../images/span.gif" width="6" height="8">' ;			
				
			for( var j = 0 ; j < productTypeArray.length ; j++ )
			{
				if( productTypeArray[j][1] == productTypeArray[i][2] )
				{			
					resultStr = resultStr + '<a href="../cn/productList.php?product_type_id=' + productTypeArray[j][2] + '" class="b1">' + productTypeArray[j][3] + '</a>' ;			
					var p = 0 ;
					for( var q = 0 ; q < productTypeArray.length ; q++ )
					{
						if( productTypeArray[q][1] == productTypeArray[i][2] )
						{			
							p = q ;
						}		
					}
					if( j < p )
					{			
						resultStr = resultStr + '<span class="b1"><img src="../images/span.gif" width="6" height="8">/<img src="../images/span.gif" width="6" height="8"></span>' ;
					}
					
				}		
			}
			resultStr = resultStr + '</td></tr></table>' ;			
			resultStr = resultStr + '<table width="173" height="10" border="0" cellpadding="0" cellspacing="0">' ;			
			resultStr = resultStr + '<tr><td><img src="../images/baby_r35_c4.jpg" width="173" height="5"></td></tr>' ;			
			resultStr = resultStr + '</table>' ;
		}		
	}
	document.write(resultStr);
}                    