function tgl(n,c,width1) {
	n = parseInt(n)==0 ? 1 : n
	c = parseInt(c)==0 ? 1 : c
	var div=document.getElementById("dropDIV_"+n)
	var tbl=document.getElementById("table_"+n)
	Element.toggle($("dropDIV_"+n));
/*
	if (typeof(opened)=="object" && div!=opened){
		opened.style.visibility="hidden"
		opened.opened=false
	}
	opened=false
	if (div.opened){
		div.style.visibility="hidden"
		div.opened=false
		sw=false
	} else {
		if (!div.fixed){
			var h=(c); //h = h>(26*5) ? width1 : h ;
			//h=h-Math.abs(1-c)*1.5;
			var w=parseInt(tbl.offsetWidth)+20; w= w<width1 ? width1 : (w+10) ;
			div.style.height=h+"px";
			div.style.width=w+"px";
			div.fixed=true;
		}
		//if (navigator.userAgent.indexOf("MSIE")!=-1)
		//{
		//	div.style.top="-2px";
		//}
		div.style.left="1px";
		div.style.visibility="visible"
		div.opened=true
		opened=div
		sw=true
	}
*/
}

function close_div(n) {
	var div=document.getElementById("dropDIV_"+n);
	div.style.visibility="hidden";
	div.opened=false;
	sw=false;
}

function change_text(id,text) {
	document.getElementById("text_"+id).innerHTML=text;
	document.getElementById(id).value=text;
	close_div(id);
}

function showFullTable(){
	window.open('index.php?section=full_table','','width=1000,height=520,resizable=yes,scrollbars=yes,toolbar=no,location=no,status=no');
}

function showFullTableEn(){
	window.open('index.php?section=full_table_en','','width=1000,height=540,resizable=yes,scrollbars=yes,toolbar=no,location=no,status=no');
}
