//----------------------------------------------------------------
// winrar

function zoomText(id,tipo)
{
obj = document.getElementById(id);

if (obj.style.fontSize=="")
	{
	obj.style.fontSize="100%";
	actual = 100;
	}
else
	actual = parseInt(obj.style.fontSize);
	
incremento = 20;
	
if (tipo == 0)
	{
	obj.style.fontSize = "100%";
	}
else if (tipo == 1)
	{
	valor = actual+incremento;
	obj.style.fontSize = valor+"%";
	}
else if (tipo == -1)
	{
	valor=actual-incremento;
	obj.style.fontSize = valor+"%";
	}
}

//----------------------------------------------------------------

function site_rmbeml(lnk)
{
var parts = lnk.href.split("=");
lnk.href = parts[0] + "=" + document.login_form.email.value;
}

//----------------------------------------------------------------

function ButtonGoTo(div_id,jurl,aurl)
{
if (!use_ajax)
	{
	location.replace(jurl);
	return false;
	}

var div = document.getElementById(div_id);
var href = jurl;

if (href.indexOf('?')>0)
	{
	var parts = href.split('?');
	var o_url = parts[0];
	var q = parts[1].split('#');
	var args = '&' + q[0];
	}
else
	{
	var args = '';
	var o_url = href;
	}
	
args = args + '&ourl=' + o_url + '&ajax=0';
requester_form = '';

if (makeHttpRequest('get', aurl, args, false, div.id, 'replace_div')) return false;

// No AJAX

location.replace(jurl);
return false;
}
//----------------------------------------------------------------

function ajax_goprev(url)
{
if (!use_ajax)
	window.location = url;
else
	history.go(-1);
	
return false;
}

//----------------------------------------------------------------

function myemail ()
{
return 'mai' + 'lto:' + my_email.replace('=','@');
}

//----------------------------------------------------------------

function saveAsMe (filename)
{
document.execCommand('SaveAs',null,filename)
}

