		function elem(id)
		{
			return document.getElementById(id);
		}

		function show(id)
		{
			elem(id).style.display = "";
		}

		function hide(id)
		{
			elem(id).style.display = "none";
		}

		function enable(id)
		{
			elem(id).disabled = false;
		}

		function disable(id)
		{
			elem(id).disabled = true;
		}

		function selectType(typeOrder)
		{
			hide("r"); hide("e"); hide("f"); hide("v"); hide("p");hide("moaveze_section")
			if (typeOrder == 1 || typeOrder == 3) show("r");
			if (typeOrder == 2 || typeOrder == 3) show("e");
			if (typeOrder == 4)
			{
				show("f");
				show("v");
				show("p");
				show("moaveze_section");
			}
		}
		
		function selectImageAvailability(Answer)
		{
			
			if (Answer == 1 ) 
			{
				show("Image_upload_1");
				show("Image_upload_2");
				show("Image_upload_3");
			}
			if (Answer == 0  ) {
				hide("Image_upload_1");
				hide("Image_upload_2");
				hide("Image_upload_3");
			}
		}
		function selectGenerall_type(){
			var Generall_type = elem("Melk_types").value;
			if ( Generall_type == 9 || Generall_type == 10 || Generall_type == 11 ) hide("Other_details");
			else show("Other_details");
		}
		function SelectCity(SelectedCity){
			elem("city").selectedIndex.value = "SelectedCity";
		}
		      function SelectOptionInList( lstSelectList, intID )
      {
            try
            {
                  var intIndex = 0;
                  // Loop through all the options
                  lstSelectList = elem(lstSelectList);
                  for( intIndex = 0; intIndex < lstSelectList.options.length; intIndex++ )
                  {
                        // Is this the ID we are looking for?
                        if( lstSelectList.options[intIndex].value == intID )
                        {
                              // Select it
                              lstSelectList.selectedIndex = intIndex;
                              // Yes, so stop searching
                              break;
                        }
                  }
            }
            catch( expError )
            {
                  alert( "ClientUtilities1.js::SelectOptionInList( ).\n" +
                              "Error:" + expError.number + ", " + expError.description );
            }
            
      } // SelectOptionInList
            
		
function Change_currency(){
	if (document.getElementById) {  // DOM3 = IE5, NS6
		var Prov = document.getElementById("province");
	}else{
		if (document.layers) {  // Netscape 4
			Prov = document.province;
		}else{  // IE 4
			Prov = document.all.city;
		}
	}

	
	if (Prov.value != 32){
		hide("Masahat_currency");
		hide("Rahn_currency");
		hide("Ejare_currency");
		hide("Mm_currency");
		hide("Mv_currency");
		
		show("Default_masahat_currency");
		show("Rahn_default_currency");
		show("Ejare_default_currency");
		show("Mm_default_currency");
		show("Mv_default_currency");
		

		}
	else {
		hide("Default_masahat_currency");
		hide("Rahn_default_currency");
		hide("Ejare_default_currency");
		hide("Mm_default_currency");
		hide("Mv_default_currency");
		
		show("Masahat_currency");
		show("Rahn_currency");
		show("Ejare_currency");
		show("Mm_currency");
		show("Mv_currency");
		
	}
	
}
