var win = null;
var numaleatorio=getRandom();
var aleatorio="";

aleatorio=numaleatorio.toString();
aleatorio=aleatorio.substr(2,6);

function getRandom() 
{
   return Math.random()
}
function AbrirVideoEnVentana(url,ancho,alto) 
{
	if (win) win.close();
	win = window.open(url,"video","width=" + ancho + ",height=" + alto + ",left=" + String(screen.width/2-ancho/2) + ",top=" + String(screen.height/2-alto/2));
	win.window.focus();
}
