
var ids = new Array('div-nasil','div-katilim','div-puan','div-iletisim');

function fnc_hideall(){
	for (var i=0;i<ids.length;i++){
		fnc_close(ids[i]);
	}		  
}

function fnc_close(div){
	document.getElementById(div).style.display = "none";
	document.getElementById('overlay').style.display = "none";
}

function fnc_open(div){
	fnc_hideall();
	footerLink = div.substring(4);
	if (!(footerLink=="puan")) {document.getElementById(footerLink).blur()};
	document.getElementById(div).style.display = "block";
	tmpobj = document.getElementById('overlay');
	tmpobj.style.display = "block";
	tmpobj.style.width = document.body.scrollWidth+"px";
}

window.onresize = function(){
	document.getElementById('overlay').style.width = document.body.scrollWidth+"px";
	document.getElementById('err_overlay').style.width = document.body.scrollWidth+"px";
	document.getElementById('fade').style.width = document.body.scrollWidth+"px";
}

function fnc_errClose(){
	document.getElementById('error').style.display = "none";
	document.getElementsByTagName('select')[0].style.display = "block";
	document.getElementsByTagName('select')[1].style.display = "block";
}
function fnc_controlForm(msg){
	document.getElementById('error').style.display = "block";
	document.getElementsByTagName('select')[0].style.display = "none";
	document.getElementsByTagName('select')[1].style.display = "none";
	document.getElementById('err_overlay').style.width = document.body.scrollWidth+"px";
	document.getElementById('fade').style.width = document.body.scrollWidth+"px";
	document.getElementById('err_msg_text').innerHTML = msg;
}