
	<!-- За пол (муж / жен) //-->

	function Show(which)
	{

		obj1=document.getElementById("man");
		obj2=document.getElementById("wmn");

		if (which == "m") 
        	{
		obj1.style.display="block";
		obj2.style.display="none";
        	}
		else
        	{
                obj2.style.display="block";
                obj1.style.display="none";
        	}
	}


	<!-- За метро и район //-->

	function Show2(which)
	{

	obj1=document.getElementById("metrom");
	obj2=document.getElementById("metrop");
	obj3=document.getElementById("metror");
	obj4=document.getElementById("m");
	obj5=document.getElementById("r");
	obj6=document.getElementById("metrok");

	if (which == "metro1") 
        {
		obj1.style.display="block";
		obj2.style.display="none";
		obj3.style.display="none";
		obj4.style.display="block";
		obj5.style.display="none";
		obj6.style.display="none";
        }
	else if(which == "metro2")
	{
		obj2.style.display="block";
		obj1.style.display="none";
		obj3.style.display="none";
		obj4.style.display="block";
		obj5.style.display="none";
		obj6.style.display="none";
	}
	else if(which == "metro5")
	{
		obj2.style.display="none";
		obj1.style.display="none";
		obj3.style.display="none";
		obj4.style.display="block";
		obj5.style.display="none";
		obj6.style.display="block";
	}
	else if(which == "metro")
	{
		obj2.style.display="none";
		obj1.style.display="none";
		obj3.style.display="none";
		obj4.style.display="none";
		obj5.style.display="none";
		obj6.style.display="none";
	}
	else
        {
		obj2.style.display="none";
		obj1.style.display="none";
		obj3.style.display="block";
		obj4.style.display="none";
		obj5.style.display="block";
		obj6.style.display="none";
        }

	}


	<!-- За другой город (check)//-->
	function Show3(which)
	{

	obj1=document.getElementById("town");
	obj2=document.getElementById("dr_towns");

		if(which == 1)
		{
			obj1.style.display="none";
			obj2.style.display="block";
			Show2();
		}
		else
		{
			obj1.style.display="block";
 			obj2.style.display="none";
			Show2("metro");
		}
	}

	function Key(evt)
	{
        var charCode = (evt.which) ? evt.which : event.keyCode;
        if (charCode > 31 && (charCode < 48 || charCode > 57))  return false;
        return true;
	}

	//удаление
	function js_delete(y, vars)
	{

		if (confirm(vars))
		{
		location = (y);
		}
	}
