$(document).ready(function(){
	/*alert($('div.main_field').height());
	alert($(window).height()-380);*/
	if ($('div.main_field').height()<($(window).height()-393)) {
		/*$('div.main_field').height(($(window).height()-393));*/
		$('#content_space').height($('div.main_field').height()-$('#content').height()-122);
		
	}
});

$(window).resize(function(){
	if ($('div.main_field').height()<($(window).height()-393)) {
		/*$('div.main_field').height(($(window).height()-393));*/
		$('#content_space').height($('div.main_field').height()-$('#content').height()-122);
		
	}
});
