// function openwindow()
// Abre una nueva ventana de tamaņo definido
function openwindow(url, ancho, alto, tools, directories, menus, scrollBar, resize,left, top)
{
	if (typeof tools == 'undefined') tools = 0;
	if (typeof directories == 'undefined') directories = 0;
	if (typeof menus == 'undefined') menus = 0;
	if (typeof scrollBar == 'undefined') scrollBar = 0;
	if (typeof resize == 'undefined') resize = 0;
	if (typeof left == 'undefined') left = 20;
	if (typeof top == 'undefined') top = 20;
	
	propiedades = "toolbar="+tools+", location=0, directories="+directories+", status=0, menubar="+menus+", scrollbars="+scrollBar+", resizable="+resize+", width="+ancho+", height="+alto+", left="+left+", top="+top+"";
	mywin = window.open(url, "win", propiedades);
	mywin.self.focus();
}