function showhideObj(obj,expand){
    obj.className = obj.className == "col" ? "exp": "col";
    expand.className = expand.className == "lev1 close" ? "lev1 open": "lev1 close";
}
function showhideObj2(lock,ex){
    obj = document.getElementById(lock);
    expand = document.getElementById(ex);
    obj.className = obj.className == "col" ? "exp": "col";
    expand.className = expand.className == "lev2 close" ? "lev2 open": "lev2 close";
}
function showhideObj3(obj,expand){
    obj.className = obj.className == "col" ? "exp": "col";
    expand.className = expand.className == "services_head close" ? "services_head open": "services_head close";
}

function doVisBox(id,idl)
{	document.getElementById(id).className='exp';
	document.getElementById(idl).href='javascript:doClsBox(\'cat_i\',\'cat_link\')';
}

function doClsBox(id,idl)
{
	document.getElementById(id).className='col';
	document.getElementById(idl).href='javascript:doVisBox(\'cat_i\',\'cat_link\')';
}

function checkForm()
{	// Массив имен проверяемых полей
	arrName = new Array("name","tel","email","missia","razmer")

	// Проверка на заполение
	for(i=0;i<=arrName.length-1;i++)
	{		if(document.getElementById(arrName[i]).value =="")
		{			empty=+arrName[i];
		}
	}
	if (empty == "")
	{ return true;}
	else
	{
		if(confirm("Не заполнено одно из обязательных полей! Продолжить?"))
		{
			return false;
		}
	}}