function modifiedLanguage(){
	submitButton = document.getElementById('sendButton');

	submitButton.disabled = true;


	box = document.getElementById('limba');
	languageSelected = box.options[box.selectedIndex].value;

	curs = document.getElementById('tipCurs');
	curs.options.length = 0;

	limbaj = document.getElementById('limbaj');
	limbaj.options.length = 0;
	
	if (languageSelected != 'none'){
		switch (languageSelected){
			case 'English':
			case 'French':
			case 'German':
				curs.options[0] = new Option('group','group');	
				curs.options[1] = new Option('one-to-one','one-to-one');
				
				limbaj.options[0] = new Option('general','general');	
				limbaj.options[1] = new Option('special purposes','special purposes');
				limbaj.options[2] = new Option('exam preparation','exam preparation');
				break;
			case 'Italian':
			case 'Spanish':
			case 'Turkish':
			case 'Greek':
			case 'Arabic':
				switch (languageSelected){
					
					default:
						curs.options[0] = new Option('group','group');	
						curs.options[1] = new Option('one-to-one','one-to-one');
						
						limbaj.options[0] = new Option('general','general');	
						limbaj.options[1] = new Option('special purposes','special purposes');
						break;	
				}
				break;	
			case 'Japanese':
			case 'Hungarian':
			case 'Dutch':
			case 'Norwegian':
			case 'Polish':
			case 'Portughese':
			case 'Russian':
			case 'Serbian':
			case 'Swedish':
					curs.options[0] = new Option('one-to-one','one-to-one');

					limbaj.options[0] = new Option('general','general');	
					limbaj.options[1] = new Option('special purposes','special purposes');
					break;
					
			default:
				curs.options[0] = new Option('one-to-one','one-to-one');
				limbaj.options[0] = new Option('general','general');	

		}
		
	}
	if (languageSelected != 'none')
	{
		submitButton.disabled = false;
	}
	
	

}

function modifiedLanguage2(){
	submitButton = document.getElementById('sendButton');

	submitButton.disabled = true;

	box = document.getElementById('limba');
	languageSelected = box.options[box.selectedIndex].value;

	curs = document.getElementById('tipCurs');
	curs.options.length = 0;

	limbaj = document.getElementById('limbaj');
	limbaj.options.length = 0;
	
	if (languageSelected != 'none'){
		switch (languageSelected){
			case 'Engleza':
			case 'Franceza':
			case 'Germana':
				curs.options[0] = new Option('group','group');	
				curs.options[1] = new Option('one-to-one','one-to-one');
				
				limbaj.options[0] = new Option('general','general');	
				limbaj.options[1] = new Option('special purposes','special purposes');
				limbaj.options[2] = new Option('exam preparation','exam preparation');
				break;
			case 'Italiana':
			case 'Spaniola':
			case 'Turca':
			case 'Greaca':
			case 'Araba':
				switch (languageSelected){
					
					default:
						curs.options[0] = new Option('group','group');	
						curs.options[1] = new Option('one-to-one','one-to-one');
						
						limbaj.options[0] = new Option('general','general');	
						limbaj.options[1] = new Option('special purposes','special purposes');
						break;	
				}
				break;	
			case 'Japoneza':
			case 'Maghiara':
			case 'Olandeza':
			case 'Norvegiana':
			case 'Polona':
			case 'Portugheza':
			case 'Rusa':
			case 'Sārba':
			case 'Suedeza':
					curs.options[0] = new Option('one-to-one','one-to-one');

					limbaj.options[0] = new Option('general','general');	
					limbaj.options[1] = new Option('special purposes','special purposes');
					break;
					
			default:
				curs.options[0] = new Option('one-to-one','one-to-one');
				limbaj.options[0] = new Option('general','general');	

		}
		
	}
	if (languageSelected != 'none')
	{
		submitButton.disabled = false;
	}
	
	

}
