function PonClass(p_id, p_class){ var obj = document.getElementById(p_id);if (!obj) { obj = document.all(p_id); } obj.className = p_class; }

var wAux;

function pupQ(sUrl, wNme, pWidth, pHeight){
	if (!pWidth) {pWidth = 750;}
	if (!pHeight) {pHeight = 330;}

	if (typeof wAux != 'undefined') {
		if (!wAux.closed) wAux.close();
	}

	var dizq = 0;

	if (screen.availWidth > (pWidth + 8)){
		dizq = screen.availWidth - (pWidth + 8);
	} else {
		dizq = 0;
	}
	
	var featu = "channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,maxbutton=0";
	featu += ",left=" + dizq + ",top=0,width=" + pWidth + ",height=" + pHeight
	
	// var featu = "location = no,left="+ dizq +",resize=no,top=0,width=" + pWidth + ",height=" + pHeight + ",titlebar = no,status = no,toolbar = no,scrollbars = no";

	wAux = window.open(sUrl, "", featu);
}

function pupQ2(sUrl, wNme, pWidth, pHeight){
	if (!pWidth) {pWidth = 750;}
	if (!pHeight) {pHeight = 375;}

	if (typeof wAux != 'undefined') {
		if (!wAux.closed) wAux.close();
	}

	var dizq = 0;

	if (screen.availWidth > (pWidth + 8)){
		dizq = screen.availWidth - (pWidth + 8);
	} else {
		dizq = 0;
	}
	
	var featu = "channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,maxbutton=0";
	featu += ",left=" + dizq + ",top=0,width=" + pWidth + ",height=" + pHeight
	
	// var featu = "location = no,left="+ dizq +",resize=no,top=0,width=" + pWidth + ",height=" + pHeight + ",titlebar = no,status = no,toolbar = no,scrollbars = no";

	wAux = window.open(sUrl, "", featu);
}
function pupN(sUrl,wNme){
	if (typeof wAux != 'undefined') {
		if (!wAux.closed) wAux.close();
	}

	var dizq;

	if (screen.availWidth > 758){
		dizq = screen.availWidth-758+100;
	} else {
		dizq = screen.availWidth -450+100;
	}

	var featu = "location = no,left="+ dizq +",resizable=no,top=100,width=450,height=200,titlebar = no,status = no,toolbar = no,scrollbars = auto";

	wAux = window.open(sUrl, "", featu);
}