function procesar_submit()
{
	document.activescanpro.submit();
}

function ExitAndGoTo(w, url)
{
	saveCookie("dentro","0");
	if (w != null)
		w.location.href=url;
}

function Enter()
{
	saveCookie("dentro","1");
}

function reload()
{
	window.location.href = window.location.href;
}

function saveCookie(nombre, valor)
{
	var expdate = new Date ();
	expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000));
	if (getCookie('MultiCult')=='es-ES')
	{
		document.cookie = nombre + "=" + escape(valor) + ";path=/;domain=.pandasecurity.com;expires="+expdate.toGMTString()+";";
	}
	else
	{
		document.cookie = nombre + "=" + escape(valor) + ";path=/;domain=.pandasecurity.com;expires="+expdate.toGMTString()+";";
	}
}

function getCookie(nombre)
{
	var buscamos = nombre + "=";
	if (document.cookie.length > 0)
	{
		i = document.cookie.indexOf(buscamos);
		if (i != -1)
		{
			i += buscamos.length;
			j = document.cookie.indexOf(";", i);
			if (j == -1)
				j = document.cookie.length;
			return unescape(document.cookie.substring(i,j));
		}
		else
			return null;
	}
	else
		return null;
}

function recordar(){
	ExitAndGoTo(window.opener,'/spain/support/keys');
	window.close();
}

function renovar(){
	ExitAndGoTo(window.opener,'/spain/renewals/');
	window.close();
}

function remind(){
	ExitAndGoTo(window.opener,'/support/keys');
	window.close();
}

function renew(){
	ExitAndGoTo(window.opener,'/renewals/');
	window.close();
}

