// Popups Efecto -->
function popdimefec(fncurl) {
var speedh = 100; //Velocidad despliege vertical (Rapido o Lento)
var speedw = 10; //Velocidad despliege horizontal (Rapido o Lento)
var dtop = 15; //Distancia ventana Top
var dleft = 15; //Distancia ventana Left
if (document.all) {
var dwidth = window.screen.availWidth-(dleft+10);
var dheight = window.screen.availHeight-(dtop+50);
var winfunc = window.open("","", "width=0, height=0, top=" + dtop + ", left=" + dleft + ", resizable=1, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1");
for (sizeheight=1; sizeheight<dheight; sizeheight+= speedh) {
winfunc.resizeTo(1, sizeheight);
}
for (sizewidth=1; sizewidth<dwidth; sizewidth+= speedw) {
winfunc.resizeTo(sizewidth, sizeheight);
}
winfunc.location = fncurl;
}
else
window.location = fncurl;
}

// Popups Auto -->
function popup_auto(fncurl, fnctitle, fncwidth, fncheight, fncparam) {
var dwidth = fncwidth;
var dheight = fncheight;
var paraminf= fncparam;
var dtop = (screen.height-dheight)/2;
var dleft = (screen.width-dwidth)/2;
newWindow=window.open(''+ fncurl + '',''+ fnctitle + '','width=' + dwidth + ',height=' + dheight + ',top=' + dtop + ',left=' + dleft + ',features=' + paraminf + '');
newWindow.focus();
}

// Popups DIN4 -->
function popdin4(fncurl) {
window.open(fncurl, "", "width=800, height=700, top=50, left=100, resizable=1, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1");
}

// Popups Imprimir -->
function popprint(fncurl) {
window.open(fncurl, "", "width=750, height=600, top=100, left=200, resizable=1, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0");
}

// Popups Terminos Uso -->
function poptuso(fncurl) {
window.open(fncurl, "", "top=180, left=80, width=550, height=250, resizable=0, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0");
}

// Popups Multimedia -->
function vmedia(fncurl) {
window.open(fncurl, "", "top=100, left=200, width=750, height=575, resizable=0, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0");
}

// Popups Dimensiones Width & Height -->
function popdim(fncurl, fncwidth, fncheight) {
window.open(fncurl, "", "top=100, left=200, width=" + fncwidth + ", height=" + fncheight + ", resizable=0, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0");
}

// Popups Dimensiones Full -->
function popdimf(fncurl, fncwidth, fncheight, fnctop, fncleft, fncrsz, fncscroll) {
window.open(fncurl, "", "top=" + fnctop + ", left=" + fncleft + ", width=" + fncwidth + ", height=" + fncheight + ", resizable=" + fncrsz + ", scrollbars=" + fncscroll + ", toolbar=0, location=0, directories=0, status=0, menubar=0");
}

// Popups Alerta -->
function popalerta(fncurl){
window.open(fncurl,"popalerta","toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=<%=cfwwalerta%>,height=<%=cfwhalerta%>")
}

// Redimension Popups -->
function docrsz(){
window.resizeTo(document.getElementById(fncw).offsetWidth+10,document.getElementById(fnch).offsetHeight+75);
IE = document.all ? 1:0;
anW=IE?document.body.clientWidth:window.innerWidth;
alW=IE?document.body.clientHeight:window.innerHeight;
anE=screen.width;
alE=screen.height;
x=anE/2-anW/2;
y=alE/2-alW/2;
moveTo(x,y);
}

