

	function showHideTipar(action) {

		if(action == 'show') {

			for( i = 1; i <= 6; i++ )

				document.getElementById('tipar'+i).style.display = 'inline';

			showHideBanner('hide');

			showHideInscriptionari('hide');

			showHideDesign('hide');

			showHideFotografie('hide');

		}

		else if(action == 'hide') {

			for( i = 1; i <= 6; i++ )

				document.getElementById('tipar'+i).style.display = 'none';

		}

	}

	

	function showHideBanner(action) {

		if(action == 'show') {

			for( i = 1; i <= 5; i++ )

				document.getElementById('banner'+i).style.display = 'inline';

			showHideTipar('hide');

			showHideInscriptionari('hide');

			showHideDesign('hide');

			showHideFotografie('hide');

		}

		else if(action == 'hide') {

			for( i = 1; i <= 5; i++ )

				document.getElementById('banner'+i).style.display = 'none';

		}

	}

	

	function showHideInscriptionari(action) {

		if(action == 'show') {

			for( i = 1; i <= 5; i++ )

				document.getElementById('inscriptionari'+i).style.display = 'inline';

			showHideTipar('hide');

			showHideBanner('hide');

			showHideDesign('hide');

			showHideFotografie('hide');

		}

		else if(action == 'hide') {

			for( i = 1; i <= 5; i++ )

				document.getElementById('inscriptionari'+i).style.display = 'none';

		}

	}

	

	function showHideDesign(action) {

		if(action == 'show') {

			for( i = 1; i <= 1; i++ )

				document.getElementById('design'+i).style.display = 'inline';

			showHideTipar('hide');			

			showHideBanner('hide');

			showHideInscriptionari('hide');

			showHideFotografie('hide');

				

		}

		else if(action == 'hide') {

			for( i = 1; i <= 1; i++ )

				document.getElementById('design'+i).style.display = 'none';

		}

	}

	

	function showHideFotografie(action) {

		if(action == 'show') {

			for( i = 1; i <= 3; i++ )

				document.getElementById('fotografie'+i).style.display = 'inline';

			showHideTipar('hide');			

			showHideBanner('hide');

			showHideInscriptionari('hide');

			showHideDesign('hide');

			

		}

		else if(action == 'hide') {

			for( i = 1; i <= 3; i++ )

				document.getElementById('fotografie'+i).style.display = 'none';

		}

	}

	

	function displayForm() {

		

		var optiune = document.forms['form1'].tiplucrare.selectedIndex;

				

		if(optiune =='0') {

			showHideTipar('hide'); showHideInscriptionari('hide'); showHideDesign('hide'); showHideFotografie('hide');

		}

		if(optiune =='1') {

			showHideTipar('show');

		}

		if(optiune =='2') {

			showHideBanner('show');

		}

		if(optiune =='3') {

			showHideInscriptionari('show');

		}

		if(optiune =='4') {

			showHideDesign('show');

		}

		if(optiune =='5') {

			showHideFotografie('show');

		}

	}

	

	function trimiteFormular() {

		if(document.forms['form1'].firma.value == '') {

			alert("Va rugam sa completati firma pe care o reprezentati!");

			return;

		}

		if(document.forms['form1'].email.value == '') {

			alert("Va rugam sa completati emailul dumneavoastra!");

			return;

		}

		if(document.forms['form1'].persoana.value == '') {

			alert("Va rugam sa completati numele dumneavoastra!");

			return;

		}

		if(document.forms['form1'].telefon.value == '') {

			alert("Va rugam sa completati telefonul dumneavoastra!");

			return;

		}

		if(document.forms['form1'].tiplucrare.value == 'Alege') {

			alert("Va rugam sa selectati tipul lucrarii dorite!");

			return;

		}

		document.forms['form1'].submit();

	}

