function GoToURL(strURL){
	window.location.href = strURL;
}

function goBack(){
	window.history.go(-1);
}

function AbrirPopup(strURL, intAncho, intAlto){
	window.open(strURL,randomString(8),'toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,width=' + intAncho + ',height=' + intAlto);
}

function AbrirPopupScroll(strURL, intAncho, intAlto){
	window.open(strURL,randomString(8),'toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=' + intAncho + ',height=' + intAlto);
}

function autosizeWindow(imgFoto) { 
	var img=document.getElementById(imgFoto);
	if (img != null){
		window.resizeTo(img.width + 10, img.height + 29); 
	}
}

function MaximizeWindow()
{
	top.window.moveTo(0,0);
	if (document.all) {
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if (document.layers||document.getElementById){
		if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth){
			top.window.outerHeight = screen.availHeight;
			top.window.outerWidth = screen.availWidth;
		}
	}
}