﻿// JScript File

function js_openwindow(url, width, height){
	window.open(url, 'popup', "scrollbars=1, toolbar=no, menubar=no, location=no,left =50 ,top = 10, width=" + width + ", height=" + height + ", directories=no");
}

function js_openwindownamed(nombre, url, width, height){
	window.open(url, nombre, "scrollbars=1, toolbar=no, menubar=no, location=no,left =50 ,top = 10, width=" + width + ", height=" + height + ", directories=no");
}

function abrirventana(url, nombre, width, height){
	window.open(url, nombre, "scrollbars=1, toolbar=no, menubar=no, location=no,left =50 ,top = 10, width=" + width + ", height=" + height + ", directories=no");
}

function abrirventanar(url, nombre, width, height){
	window.open(url, nombre, "scrollbars=1, toolbar=no, menubar=no, location=no,left =50 ,top = 10, resizable =yes, width=" + width + ", height=" + height + ", directories=no");
}

function abrirVentanaSinScrollBar(url, nombre, width, height){
	window.open(url, nombre, "toolbar=no, menubar=no, location=no,left =50 ,top = 10, resizable =yes, width=" + width + ", height=" + height + ", directories=no");
}

function abrirfotousuario(idusuario){
  js_openwindow('fotousuario.aspx?id=' + idusuario, 510, 400);
}

function abrirfotogaleria(idfoto, idevento, nrofoto){
  js_openwindow('foto.aspx?idfoto=' + idfoto + '&idevento=' + idevento + '&nrofoto=' + nrofoto, 510, 450);
  //js_openwindow('fotousuario.aspx?id=' + idusuario, 510, 400);
}