﻿function OpenWindow(URL, name, args)
{
	var w;
	w= window.open(URL, name, args);
	w.opener= self;
	w.focus();
}

function OpenDialog(URL, name, width, height)
{
	var wndNuevaVentana= null;
	args= "width=" + width + ", height=" + height + ", resizable=yes, scrollbars=yes, status=yes, toolbar=yes";

	OpenWindow(URL, name, args);
}

function CloseWindow(_window, refresh)
{
	_window.close();
	if(_window.opener){
		if(!_window.opener.closed){
			_window.opener.focus();
			if(refresh){
				_window.opener.document.location.reload();
			}
		}
	}
}
function MaximizeWindow(_window)
{
	if (_window.top.location != _window.location) _window.top.location.href = _window.location.href;
	_window.moveTo(0,0);
	_window.resizeTo(_window.screen.availWidth, _window.screen.availHeight);
}


<!-- Efecto imagenes -->

function high(image)
{
	theobject=image;
	highlighting=setInterval("highlightit(theobject)",50);
}


function low(which2)
{
	clearInterval(highlighting);
	which2.filters.alpha.opacity=50;
}

function highlightit(cur2)
{
	if(cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=5
	else if(window.highlighting)
		clearInterval(highlighting)
}
