// funciones comunes
function irPagina(url)
{
	location.href = url;
}

function attach_file( p_script_url ) 
{
	// create new script element, set its relative URL, and load it
	script = document.createElement( 'script' );
	script.src = p_script_url;
	document.getElementsByTagName('head')[0].appendChild(script);
}

function abrirv(URL)
{
	window.open(URL,"ventana_pass","width=600, height=300, scrollbars=no, menubar=no, location=no, resizable=no");
}

function abrirv2(URL)
{
	window.open(URL,"ventana_pass","width=500, height=600, scrollbars=no, menubar=no, location=no, resizable=no");
}