function xitvideof()
{document.getElementById('xitvideo').style.display='block'; document.getElementById('xitaudio').style.display='none';}
function xitaudiof()
{document.getElementById('xitvideo').style.display='none'; document.getElementById('xitaudio').style.display='block';}

function chartsay()
{if(document.getElementById('chartsay').style.display=='block'){document.getElementById('chartsay').style.display='none'; document.getElementById('chartsayoff').style.display='block';}
else{document.getElementById('chartsay').style.display='block'; document.getElementById('chartsayoff').style.display='none'; document.getElementById('capcha').src='capcha.php?rand='+Math.round(99999 * Math.random());}
}

function chartrefresh(){document.getElementById('capcha').src='capcha.php?rand='+Math.round(99999 * Math.random());}
function newsrefresh(){document.getElementById('capchan').src='capcha.php?rand='+Math.round(99999 * Math.random());}
function regrefresh(){document.getElementById('capchareg').src='capcha.php?rand='+Math.round(99999 * Math.random());}
function remrefresh(){document.getElementById('capcharem').src='capcha.php?rand='+Math.round(99999 * Math.random());}

function popupMsg(f) {
ok = 1
msg = ""
if(!f.saychart.value) { ok = 0; msg += "Напішыце тэкст паведамлення!\n" }
if(!f.namechart.value) { ok = 0; msg += "Напішыце сваё імя!\n" }
if(!f.codchart.value) { ok = 0; msg += "Напішыце код з малюначка!\n" }
if(f.saychart.value=="Ваш тэкст...") { ok = 0; msg += "Напішыце тэкст паведамлення!\n" }
if(f.namechart.value=="Вашае імя...") { ok = 0; msg += "Напішыце сваё імя!\n" }
if(f.codchart.value=="Код...") { ok = 0; msg += "Напішыце код з малюначка!\n" }
if(ok) {
f.submit()
f.reset()}
else alert("Вы забылі нешта сказаць :)\n" + msg)}


function addaudio()
{if(document.getElementById('absxit').style.display=='block')document.getElementById('absxit').style.display='none';
else{document.getElementById('absxit').style.display='block'}}
function addvideo()
{if(document.getElementById('absxitv').style.display=='block')document.getElementById('absxitv').style.display='none';
else{document.getElementById('absxitv').style.display='block'}}
function addafisha()
{if(document.getElementById('absafisha').style.display=='block')document.getElementById('absafisha').style.display='none';
else{document.getElementById('absafisha').style.display='block'}}
function addnew()
{if(document.getElementById('absnew').style.display=='block')document.getElementById('absnew').style.display='none';
else{document.getElementById('absnew').style.display='block'}}
function addcoment()
{if(document.getElementById('abscoment').style.display=='block')document.getElementById('abscoment').style.display='none';
else{document.getElementById('abscoment').style.display='block'}}
function addchangebaza()
{if(document.getElementById('abschangebaza').style.display=='block')document.getElementById('abschangebaza').style.display='none';
else{document.getElementById('abschangebaza').style.display='block'}}
function addregistr()
{if(document.getElementById('absregistr').style.display=='block')document.getElementById('absregistr').style.display='none';
else{document.getElementById('absregistr').style.display='block'}}
function addrememb()
{if(document.getElementById('absrememb').style.display=='block')document.getElementById('absrememb').style.display='none';
else{document.getElementById('absrememb').style.display='block'}}
function changelog()
{if(document.getElementById('abschangelog').style.display=='block')document.getElementById('abschangelog').style.display='none';
else{document.getElementById('abschangelog').style.display='block'}}





function show1(x)
{if(document.getElementById(x).style.display=='none')document.getElementById(x).style.display='block';
else{document.getElementById(x).style.display='none'}}

function show(x)
{if(document.getElementById(x).style.display=='block')document.getElementById(x).style.display='none';
else{document.getElementById(x).style.display='block'}}
