var errorMessage = new Array();
errorMessage['bondClass'] = '<b>Bitte Wertschriftentyp ausw&auml;hlen</b><br/>';
errorMessage['stockExType'] = '<b>Bitte Wertschriftenart ausw&auml;hlen</b><br/>';
errorMessage['istZahl'] = '<b>Bitte Betrag eingeben</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]='Schweiz';
	typesArray[1][2]='Ausland';

	typesArray[2][1]='Handel in CHF';
	typesArray[2][2]='Handel in Fremdwährung';

	typesArray[3][1]='Geldmarktfonds';
	typesArray[3][2]='Aktienfonds';
	typesArray[3][3]='Obligationenfonds';
	typesArray[3][4]='Strategiefonds, übrige Fonds';

	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);
		}
	}

}
