//popup
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL,'carro','toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=350,left = 240,top = 200');");
}
//
function popUpa(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=350,left = 240,top = 200');");
}
// abrir mas
function MM_openBrWindow(theURL,winName,features,infocus) { //v2.0
  window.open(theURL,winName,features);
}
// abriendo al frente
var funcion_popupWindow=null; 
function funcion_popup(mi_pagina,mi_nombre,w,h,pos,infocus){ 
if(pos=='random'){ 
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100; 
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} 
if(pos=='center'){ 
LeftPosition=(screen.width)?(screen.width-w)/2:100; 
TopPosition=(screen.height)?(screen.height-h)/2:100;} 
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no,dependent=no'; 
funcion_popupWindow=window.open('',mi_nombre,settings); 
if(infocus=='front')
{
	funcion_popupWindow.focus();
	funcion_popupWindow.location=mi_pagina;
} 
} 
//enviar recomendacion
var myHeight = 460;
var isResizable = false;

function createTarget(form) {
_target = form.target;
_colon = _target.indexOf(":");
if(_colon != -1) {
form.target = _target.substring(0,_colon);
form.args = _target.substring(_colon+1);
} else if(typeof(form.args)=="undefined") {
form.args = "";
}
if(form.args.indexOf("{")!=-1) {
_args = form.args.split("{");
form.args = _args[0];
for(var i = 1; i < _args.length;i++) {
_args[i] = _args[i].split("}");
form.args += eval(_args[i][0]) + _args[i][1];
   }
}
form.args = form.args.replace(/ /g,"");
_win = window.open('',form.target,form.args);
if(typeof(focus)=="function")
_win.focus();
return true;
}
