function set_type_order(type_order) {
	document.getElementById('type_order').value = type_order;
	document.frm_type_order.submit();
}
function toggle(id) {
	if (document.getElementById(id).style.display=='block') {
		document.getElementById(id).style.display='none';
	} else	{
		document.getElementById(id).style.display='block';
	}
}

function mess_competention() {
	alert('Голосование осуществляется ТОЛЬКО по регистрации. Пож-та войдите под своим логином или зарегистрируетесь');
}

/*function setBigImage( imagePath, aPath ) {
	document.getElementById("imgBig").src = "/up_competition/" + imagePath;
	document.getElementById("aBig").href = "/up_competition/" + aPath;
}*/
	
//var height;

function set_big_image(file_name) {
	//alert("khuy");
	//alert(file_name);
	$("#frame_big_photo").html("<div style=\"padding-top:300px;\"><img src=\"/_img/indicator.gif\"/> Пожалуйста, подождите...</div>");
	//alert('cr');
	var big_image = new Image();
	big_image.onload = display_big_image;
	big_image.src = "/up_competition/" + file_name;
	function display_big_image() {
		$("#frame_big_photo").html("<a target=\"_blank\" href=\"/up_competition/"+file_name.replace("big_", "orign_")+"\"><img id=\"big_photo\"  src=\"/up_competition/"+file_name+"\" /></a><br /><a href=\"/up_competition/"+file_name.replace("big_", "orign_")+"\" target=\"_blank\"><img src=\"/images/zoom.gif\" style=\"margin:0px 6px 0 0 !important; border:0px !important;\" align=\"left\" /> <span style=\"font-size:85%;\">увеличить</span></a>");
	}
	//document.getElementById("imgBig").src = "/up_competition/" + file_name;
	//document.getElementById("aBig").href = "/up_competition/" + file_name.replace(/^big/, "orign");
	/*var a = new comAPI.AJAX();
	a.start("GET", "/up_competition/" + file_name, imageReady, imageLoading);
	location.hash = "#photo";*/
	//height = document.getElementById("imgBig").height;
}

function imageReady(a){
	//document.getElementById("imgBig").style.marginTop = "0px";
	document.getElementById("imgBig").src = a.requestUrl;
	//alert(a.response);
}

function imageLoading(a) {
	//var width = document.getElementById("imgBig").width;
	//var height = document.getElementById("imgBig").height;
	//document.getElementById("imgBig").style.marginTop = height + "px";
	document.getElementById("imgBig").src = "/_img/indicator.gif";
	//document.getElementById("imgBig").padding = width;
	//document.getElementById("imgBig").height = height;
}