br="IE";
if (window.innerWidth) br="Op";
	function get_simbs()
	{si='';
if (document.forms.form.simbs.value=='') 
{alert('Íóæíî óêàçàòü íàáîð ñèìâîëîâ');
return false;
}
else if (document.forms.form.simbs.value==3)
s= new Array ("à", "î", "ó", "ý", "û", "å", "è", "þ", "ÿ", "á", "â", "ã", "ä", "ç", "é", "ê", "ë", "ì", "í", "ï", "ð", "ñ", "ò", "ô", "õ", "ö", "÷", "ø", "ù", "æ");
else if (document.forms.form.simbs.value==1)
s= new Array  ("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
else if (document.forms.form.simbs.value==2)
{s= new Array ("!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_", "+", "|", '"', "¹", ";", "%", ":", "?", "*", "/", "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]", "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'", "Z", "X", "C", "V", "B", "N", "M", ",", ".", "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
font='Simbols';
}
si1='';
for(i=0; i<document.forms.form.meny.value; i++)
{m1=Math.round(Math.random()*(s.length-1)*2-s.length+1);
if (m1<0) m=m1*(-1); else m=m1;
si+=s[m];
si1+=s[m];
if ((i%50)==49) si1+='<br>';
}
document.getElementById('test').innerHTML=si1;
document.forms.form.echo.value=si;
if (br!='Op')
{
s_z=12
if (document.forms.form.font1.value=='Calligraph' || document.forms.form.font1.value=='Odessa Script')
s_z=25
document.getElementById('echo').style.font='normal normal normal '+s_z+'px/normal '+document.forms.form.font1.value
document.getElementById('test').style.font='normal normal normal '+s_z+'px/normal '+document.forms.form.font1.value
}
columns();
}
function val_s_font(v)
{if (br!='Op')
{
if (document.forms.form.font1[1].selected==1 || document.forms.form.simbs[3].selected==1)
	{
	if (v==2)
	{
	if (document.forms.form.simbs[3].selected==1)
	document.forms.form.simbs[1].selected=1
	else
	document.forms.form.simbs[3].selected=1
	}
	else if (v==1)
	{
	if (document.forms.form.font1[1].selected==1)
	document.forms.form.font1[0].selected=1
	else
	document.forms.form.font1[1].selected=1
	}
	}
}
}
	document.write ('<form name=form>')
	if (br!='Op')document.write ('<br><br><br><br>');
	if (br!='Op') document.write ('<select name=font1 OnChange="val_s_font(\'2\');"><option value="Times New Roman">Times New Roman</option><option value="Wingdings">Wingdings</option><option value="Odessa Script">Odessa Script</option><option value="Calligraph">Calligraph</option></select>');
document.write ('<select name=simbs OnChange="val_s_font(\'1\');"><option></option><option value=3>Áóêâû</option><option value=1>Öèôðû</option>')
if (br!='Op') document.write ('<option value=2>Ñèìâîëû</option>')
document.write ('</select><input type=text name=meny size=5 disabled><INPUT type=button name=up value="+100" size=1 onClick="if (parseInt(document.forms.form.meny.value)<10000) document.forms.form.meny.value=parseInt(document.forms.form.meny.value)+100;"><INPUT type=button name=up value="-100" size=1 onClick="if (parseInt(document.forms.form.meny.value)>100) document.forms.form.meny.value=parseInt(document.forms.form.meny.value)-100;"><INPUT type=button name=up value="Âûâåñòè" onClick="get_simbs();"> <a href=/download/Calligraph.ttf>Calligraph.ttf</a> <a href=/download/odessa.ttf>odessa.ttf</a><br><textarea name=echo id=echo wrap=hard></textarea></form><div name=test id=test width=500></div>')
	document.forms.form.meny.value=1000;
	
