function sndReqJob() {
	var coll = document.all.item("ite");
	if (coll.length) theInputCol = coll.length - 1;
	else theInputCol = 0;
	var text = '';
	var theUL = document.getElementById('job_block'+theInputCol);
	var nextInputCol = theInputCol + 1;
	var mes = new Array("месяц","Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь");
	var god = new Array("1930","1931","1932","1933","1934","1935","1936","1937","1938","1939","1940","1941","1942","1943","1944","1945","1946","1947","1948","1949","1950","1951","1952","1953","1954","1955","1956","1957","1958","1959","1960","1961","1962","1963","1964","1965","1966","1967","1968","1969","1970","1971","1972","1973","1974","1975","1976","1977","1978","1979","1980","1981","1982","1983","1984","1985","1986","1987","1988","1989","1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","год");

	text = '<p> с <select name=info[exp][' + nextInputCol + '][date_month_start] size=1 style="width:100px">';
	for (m=0; m<=12; m++) {
	  text += '<option value="' + m + '">' + mes[m];
	}
	text += '</select> <select name=info[exp][' + nextInputCol + '][date_year_start] size=1 style="width:37px">';
	for (g=god.length-1; g>=0; g--) {
	  text += '<option value="' + god[g] + '">' + god[g];
	}
	text += '</select>  по <select name=info[exp][' + nextInputCol + '][date_month_end] size=1 style="width:100px">';
	for (m=0; m<=12; m++) {
	  text += '<option value="' + m + '">' + mes[m];
	}
	text += '</select> <select name=info[exp][' + nextInputCol + '][date_year_end] size=1 style="width:37px">';
	for (g=god.length-1; g>=0; g--) {
	  text += '<option value="' + god[g] + '">' + god[g];
	}
	text += '</select>&nbsp;&nbsp;<input type="checkbox" name=info[exp][' + nextInputCol + '][for_now] value="1"> по настоящее время</p><ul><li><b>Место работы:</b> <input id="ite" type="text" name=info[exp][' + nextInputCol + '][mesto_rab] class="input"></li>';
	text += '<li><b>Должность:</b> <input type="text" name=info[exp][' + nextInputCol + '][mesto_rang] class="input"></li>';
	text += '<li><b>Обязанности:</b> <textarea rows="3" style="width:260px" name=info[exp][' + nextInputCol + '][mesto_acting] class="input"></textarea></li>';

	text += '<li><b>&nbsp;</b> <input type="button" value="Добавить" onClick="sndReqJob()"></li></ul><span id="job_block' + nextInputCol + '"></span>';
	theUL.innerHTML = text;
}

function sndReq2(mas) {
	var theUL = document.getElementById('model_block');
	var nul = false;
	var massiv = mas.split(";");
	var massiv_auto = new Array();


	var spec = '<ul style="width:600px"><li><b style="width:200px">Специализации:</b>&nbsp;</li>';

	for(i=0; i<massiv.length; i++) {
		massiv_auto[i] = massiv[i].split(".");
	}

	for(i=0; i<massiv_auto.length; i++) {
		if (massiv_auto[i][2] == document.forms.job_form.prof.value) {
			spec += '<li><b style="width:120px">&nbsp;</b><input type="checkbox" name=info[razdels][] value="' + massiv_auto[i][0] + '"> ' + massiv_auto[i][1] + '</li>';
			nul = true;
		}
	}
    spec += '</ul>';
	if (!nul) spec = '';
	theUL.innerHTML = spec;
}

function activ(type) {
	var list = document.getElementById('mesto').getElementsByTagName('*');

	for( var i = 0; i < list.length; i++ ) {
		switch(list[i].nodeName.toLowerCase()) {
			case 'input':
			case 'select':
			case 'textarea':
				list[i].disabled=type;
				break;
		}
	}
}