var iSubmit = 0;function submitForm()
{
	if (iSubmit == 0)
	{
		iSubmit++;return true;
	}
	else
	{
		alert('Please be patient. It will take only a few seconds more!');return false;
	}
}
function decode(a)
{
	var i;var iHex;var w;i=0;
	while(i<a.length){iHex= a.substring(i,i+2);document.write('&#'+eval('0x'+iHex)+';');i++;i++}
}
function decodeTo(a)
{
	document.write ('<a href="mailto:');decode(a);
}
function decodemail(a,b)
{
	document.write ('<a href="mailto:');decode(b);
	document.write ('">');
	decode(a);
	document.write ('</a>');
}
function window_blank(url)
{
	var newwin = window.open(url,'_blank');
	newwin.focus();
}
function window_top(url)
{
	var newwin = window.top.location=url;
	newwin.focus();
}
if (top.location != self.location){top.location = self.location;}

function content_resize()
{
	if(!document.getElementById('content')){return;}
	w = remw;
	var n = (navigator.appName=='Netscape')?true:false;
	iWidth = (n)?window.innerWidth:document.body.clientWidth;
	var p = 5;
	var mt = mw;
	if((iWidth-ml-6) < w) w = iWidth-ml-6;
	if(iWidth-ml < mt) mt = iWidth-ml;
	var a = 0; var mp = ''; var t = '';
	if(w < 535)
	{
		mp = Math.ceil((w - 425) / ((mc-1)*2))-1;
		if(mp < 0) mp = 0;
	}
	else
	{
		mp = 10;
	}
	document.getElementById('content').style.width = w+'px';
	document.getElementById('ea_frame_right').style.left=(w+ml+3)+'px';
	document.getElementById('ea_frame_right_top').style.left=(w+ml+3)+'px';
	document.getElementById('ea_frame_right_bottom').style.left=(w+ml+3)+'px';
	document.getElementById('ea_right_sur').style.left=(w+ml+6)+'px';
	iHeight = ((n)?window.innerHeight:document.body.clientHeight)-88;
	document.getElementById('content').style.height = iHeight+'px';
	document.getElementById('ea_menu').style.width = mt+'px';
	document.getElementById('ea_menu_t').style.width = (mt+(mp*2))+'px';
	document.getElementById('ea_menu_t').style.margin = '20px 0 0 '+(ml-mp)+'px';
	arr = document.getElementsByTagName('a');
	for (i = 0; i < arr.length; i++)
	{
		if(arr[i].className.substr(0,7) == 'ea_menu') arr[i].style.padding = '1px '+mp+'px '+p+'px '+mp+'px';
	}
}


