var errorMessage = new Array();
errorMessage['bondClass'] = '<b>S&#233;lectionner: Type de titre</b><br/>';
errorMessage['stockExType'] = '<b>S&#233;lectionner: Genre de titre</b><br/>';
errorMessage['istZahl'] = '<b>S&#233;lectionner: Genre de titre</b><br/>';

function updatestockExType(stockExType){
	// declare the array which contains the titles of the types depending on the classes
	var typesArray=new Array();
	typesArray[1]=new Array();
	typesArray[2]=new Array();
	typesArray[3]=new Array();

	typesArray[1][1]='Suisse';
	typesArray[1][2]='Etranger';

	typesArray[2][1]='Transactions en CHF';
	typesArray[2][2]='Transactions en monnaie étrangère';

	typesArray[3][1]='Fonds sur le marché monétaire';
	typesArray[3][2]='Fonds en actions';
	typesArray[3][3]='Fonds en obligations';
	typesArray[3][4]='Fonds stratégiques pour un développement durable';

	if(stockExType>0 && stockExType<4){
		$('stockExType').options.length=0;
		for(i=1;i<typesArray[stockExType].length;i++){
			$('stockExType').options[i-1]=new Option(typesArray[stockExType][i], i, false, false);
		}
	}

}
