function rebuild(){
if((document.documentElement.clientWidth || document.body.clientWidth) > 980){
document.getElementById("cont").style.width="980px";
document.getElementById("work").style.width="660px";
	//$("#cont").css("width","980px");
	//$("#work").css("width","660px");
	}else{
//		document.getElementById("cont").style.width="auto";
		//$("#cont").css("width","auto");
//		$r=660-(980-(document.documentElement.clientWidth || document.body.clientWidth));
//		document.getElementById("work").style.width=$r+"px";
		//$("#work").css("width",$r);
		}
if((document.documentElement.clientWidth || document.body.clientWidth) < 770){
//	document.getElementById("cont").style.width="770px";
//	document.getElementById("work").style.width="450px";
	//$("#cont").css("width","770px");
	//$("#work").css("width","450px");
	}
}
window.onload = function(){rebuild();};
window.onresize = function(){rebuild();};

function check() {
	ok=true;
	if (ok==false) {
	} else if (document.getElementById("fio").value=="") {
		alert("Вы не указали ФИО.");
		ok=false;
	} else if (document.getElementById("email").value=="") {
		alert("Вы не указали адрес электронной почты.");
		ok=false;
	} else if (document.getElementById("org").value=="") {
		alert('Вы не указали организацию.');
		ok=false;
	} else if (document.getElementById("params").value=="") {
		alert('Вы не указали параметры запроса.');
		ok=false;
	}
	//if (ok);
	return ok;
}
