// JavaScript Document

function resetInput(nombrecaja)
{
	document.getElementById(nombrecaja).value="";
}
function setInput(nombrecaja, texttext)
{
	if (document.getElementById(nombrecaja).value=="")
		document.getElementById(nombrecaja).value=texttext;
}

function SetCookie(name, value, expires, path, domain, secure) 

{ document.cookie = name + "=" + escape(value) + 

  ((expires == null) ? "" : "; expires=" + expires.toGMTString()) +

  ((path == null)    ? "" : "; path=" + path) +

  ((domain == null)  ? "" : "; domain=" + domain) +

  ((secure == null)  ? "" : "; secure");

}
function popUp(popupURL)
{
width = 320; height = 350; leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
if (screen.height && (screen.height <= 600)) { topPosition = 0; } else { topPosition = (screen.height) ? (screen.height-height)/2 : 0; }
var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbar=0,resizable=0,status=0';
var popup=window.open(popupURL, 'gamepopup', settings); popup.focus();
}
function AbrirVentana(url,ancho,alto){
	var propiedades;
	propiedades="scrollbars=1, status=0, toolbars=0, resizable=no,top=50,left=50,width=" + ancho+",height="+alto;
	window.open(url,"" ,propiedades);
}
function confirmar(mensaje,destino)

{

	if (confirm(mensaje))

	{

		document.location.href=destino;

	}

}		



function mOvr(src) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand';  }}

function mOut(src) { if (!src.contains(event.toElement)) {  src.style.cursor = 'default'; }}

function overTD(td,color){td.bgColor=color;} 

function outTD(td,color){td.style.cursor='default';td.bgColor=color;} 

function cancela(url)

{

					document.location.href=url;

}
