function shadowPopup(txt, x, y){
Shadowbox.open({content: txt,player: "html",title: "",height: y,width: x});		
}
/////////////////
function popup_help(titulo, subtitulo, img, saludo, btn){
var x=269;
var y=420;
var pointer="'pointer'";
var popupString='<table id="body" width="269" height="420" border="0" cellpadding="0" cellspacing="0"><tr><td rowspan="0"><div id="warp" style="background:#dbdbdb; width:269px; height:420px; float:left"><div id="warp" style="background:url(../vw_imgs/infologo.png); width:20px; height:20px; float:left; margin-left:12px; margin-top:14px;"></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:left; font-size:12px; color:#2db2ff; width:200px; height:20px; float:left; margin-left:12px; margin-top:16px;">'+titulo+'</div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:left; font-size:12px; color:#666;width:243px; height:40px; float:left; margin-left:12px; margin-top:10px;">'+subtitulo+'</div><div id="warp" style="background:url(../vw_imgs/'+img+'); width:247px; height:219px; float:left; margin-left:10px; margin-top:14px;"></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:1; text-align:left; font-size:12px; color:#666; width:243px; height:40px; float:left; margin-left:12px; margin-top:14px;">'+saludo+'</div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:60px; margin-top:10px; background:#2db2ff"><div  id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;"onClick="parent.Shadowbox.close();" onmouseover="this.style.cursor='+pointer+'">'+btn+'</div></div></div></td></tr></table>';
shadowPopup(popupString,x,y);
}

function popup_store(img, name, descripcion, size, price, manufacturer){
var x=421;
var y=450;
var pic = new Array();
pic[0] = new Array();
pic[0][0]=img.substr(0,img.length-4);
pic[0][1]=img.substr(img.length-4,4);
var pointer="'pointer'";
var popupString='<table id="body" width="421" height="450" border="0" cellpadding="0" cellspacing="0" style="overflow:hidden;"><tr><td rowspan="0"><div id="warp" style="background:#dbdbdb; width:421px; height:450px; float:left"><div id="picBig" style="background:url(../vw_imgs/SHOP/'+pic[0][0]+'_1'+pic[0][1]+') no-repeat center #FFF; width:320px; height:320px; float:left; margin-left:9px; margin-top:9px;"></div> <div id="warp" style="background:url(../vw_imgs/SHOP/'+pic[0][0]+'_1'+pic[0][1]+') center no-repeat #FFF; width:77px; height:77px; float:right; margin-right:9px; margin-top:9px;" onClick="$(picBig).style.background=this.style.background;" onmouseover="this.style.cursor='+pointer+';"></div><div id="warp" style="background:url(../vw_imgs/SHOP/'+pic[0][0]+'_2'+pic[0][1]+') center no-repeat #FFF; width:77px; height:77px; float:right; margin-right:9px; margin-top:4px;" onClick="$(picBig).style.background=this.style.background;" onmouseover="this.style.cursor='+pointer+'"></div><div id="warp" style="background:url(../vw_imgs/SHOP/'+pic[0][0]+'_3'+pic[0][1]+') center no-repeat #FFF; width:77px; height:77px; float:right; margin-right:9px; margin-top:4px;" onClick="$(picBig).style.background=this.style.background;" onmouseover="this.style.cursor='+pointer+'"></div><div id="warp" style="background:url(../vw_imgs/SHOP/'+pic[0][0]+'_4'+pic[0][1]+') center no-repeat #FFF; width:77px; height:77px; float:right; margin-right:9px; margin-top:4px;" onClick="$(picBig).style.background=this.style.background;" onmouseover="this.style.cursor='+pointer+'"></div><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:bold; font-size:12px; color:#666666; width:320px; height:20px; float:left; margin-left:9px; margin-top:4px;">'+name+' - <strong>'+manufacturer+'</strong></div><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:1; font-size:12px; color:#666666; width:320px; height:60px; float:left; margin-left:9px; margin-top:10px; overflow:auto;">'+descripcion+'</div><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:1; font-size:12px; color:#666666;width:90px; height:15px; float:left; margin-left:9px; margin-top:5px;"> Dimensiones:</div> <div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:1; font-size:12px; color:#666666;width:110px; height:15px; float:left; margin-left:0px; margin-top:5px;"> '+size+' cms</div><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:bold; font-size:18px; color:#666666;width:70px; height:15px; float:right; margin-right:9px; margin-top:0px;">'+price+'€ </div><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:1; font-size:12px; color:#666666;width:50px; height:15px; float:right; margin-right:5px; margin-top:5px;">Precio</div></div></td></tr><script>var picBig="picBig";function cambiaBig(img){alert(document.images["'+pic[0][0]+'_1'+pic[0][1]+'"].complete );var picBig="picBig";if(img!="background:url(../vw_imgs/SHOP/_1) center no-repeat #FFF"){$(picBig).style.background=img;}}</script></table> ';
shadowPopup(popupString,x,y);	
}

function popup_confirm(type, quest, txtOK, funcOK, txtFail, funcFail, x, y){
if(!x){x=518;}
if(!y){y=146;}
var pointer="'pointer'";
if(!funcFail){funcFail='parent.Shadowbox.close();';}
var popupString='<table id="body" width="'+x+'" height="'+y+'" border="0" cellpadding="0" cellspacing="0" style="overflow:hidden;"><tr><td rowspan="0"><div id="warp" style="background:#dbdbdb; width:'+x+'px; height:'+y+'px; float:left"><div id="warp" style="width:144px; height:146px; float:left; margin-left:0px; margin-top:0px;"><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:13px; color:#ff8b36; width:84px; height:20px; float:left; margin-left:25px; margin-top:20px;">'+type+'</div> <div id="warp" style="background:url(../vw_imgs/logo_alertas.png); width:84px; height:75px; float:left; margin-left:25px; margin-top:5px;"></div> </div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:left; font-size:12px; color:#666666; width:355px; height:45%; float:left; margin-left:10px; margin-top:25px; overflow:hidden;">'+quest+'</div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:27px; margin-top:10px; background:#2db2ff" onClick="'+funcOK+'" onmouseover="this.style.cursor='+pointer+'"><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtOK+'</div></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:20px; margin-top:10px; background:#ff8b36" onClick="'+funcFail+'" onmouseover="this.style.cursor='+pointer+'"><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtFail+'</div></div></div></td></tr></table>';

shadowPopup(popupString,x,y);
}

function popup_confirm_long(type, img, tit, quest, txtOK, funcOK, txtFail, funcFail){
var x=618;
var y=300;
var pointer="'pointer'";
if(!funcOK){funcOK='parent.Shadowbox.close();';}
if(!funcFail){funcFail='parent.Shadowbox.close();';}
var popupString='<div id="warp" style="background:#dbdbdb; width:618px; height:300px; float:left"><div id="warp" style="width:144px; height:300px; float:left; margin-left:0px; margin-top:0px;"><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:13px; color:#ff8b36; width:84px; height:auto; float:left; margin-left:25px; margin-top:25px; position:relative;">'+type+'</div> <div id="warp" style="background:url(../vw_imgs/'+img+') center no-repeat; width:84px; height:75px; float:left; margin-left:25px; margin-top:15px; position:relative;"></div> </div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:left; font-size:12px; color:#666666; width:455px; height:214px; float:left; margin-left:10px; margin-top:25px; overflow: auto;"><strong>'+tit+'</strong><br/><p style="font-size:.8em; margin-left:0px; margin-top:10px;">'+quest+'</p></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:80px; margin-top:10px; background:#2db2ff" onClick="'+funcOK+'" onmouseover="this.style.cursor='+pointer+'"><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtOK+'</div></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:20px; margin-top:10px; background:#ff8b36" onClick="'+funcFail+'" onmouseover="this.style.cursor='+pointer+'"><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtFail+'</div></div></div></td></tr></table>';
shadowPopup(popupString,x,y);
}



function popup_aviso(type, quest, txtOK, funcOK){
var x=518;
var y=200;
var pointer='"pointer"';
if(!funcOK){funcOK='parent.Shadowbox.close();';}
var popupString="<div id='warp' style='background:#dbdbdb; width:518px; height:200px; float:left'><div id='warp' style='width:144px; height:200px; float:left; margin-left:0px; margin-top:0px;'><div id='warp' style=' font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:13px; color:#ff8b36; width:84px; height:20px; float:left; margin-left:25px; margin-top:20px;'>"+type+"</div> <div id='warp' style='background:url(../vw_imgs/logo_alertas.png); width:84px; height:75px; float:left; margin-left:25px; margin-top:5px;'></div> </div><div id='warp' style='font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:left; font-size:12px; color:#666666; width:355px; height:114px; float:left; margin-left:10px; margin-top:25px; overflow:hidden;'>"+quest+"</div><div id='warp' style='font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:107px; margin-top:10px; background:#2db2ff; cursor:pointer;' onClick='"+funcOK+"'><div id='warp' style='font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;'>"+txtOK+"</div></div></div>";
shadowPopup(popupString,x,y);
}

function popup_long(type, img, tit, quest, txtOK, funcOK){
var x=618;
var y=300;
var pointer="'pointer'";
if(!funcOK){funcOK='parent.Shadowbox.close();';}
var popupString='<div id="warp" style="background:#dbdbdb; width:618px; height:300px; float:left"><div id="warp" style="width:144px; height:300px; float:left; margin-left:0px; margin-top:0px;"><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:13px; color:#ff8b36; width:84px; height:auto; float:left; margin-left:25px; margin-top:25px; position:relative;">'+type+'</div> <div id="warp" style="background:url(../vw_imgs/'+img+') center no-repeat; width:84px; height:75px; float:left; margin-left:25px; margin-top:15px; position:relative;"></div> </div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:left; font-size:12px; color:#666666; width:455px; height:214px; float:left; margin-left:10px; margin-top:25px; overflow: auto;"><strong>'+tit+'</strong><br/><p style="font-size:.8em; margin-left:0px; margin-top:10px;">'+quest+'</p></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:107px; margin-top:10px; background:#2db2ff" onClick="'+funcOK+'" onmouseover="this.style.cursor='+pointer+'"><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtOK+'</div></div></div>';
shadowPopup(popupString,x,y);
}

function popup_UZ_Items(id, classID, name, desc, ico, txtOK, funcOK){
	   //popup_UZ_Items(id_it, classID, name, desc2, ico, 'ACCEPTAR')
var x=392;
var y=550;
var pointer="'pointer'";
var descString='';
var eliminarString='';
if(!funcOK){funcOK='parent.Shadowbox.close();';}
if(desc.length){
	switch(parseInt(classID)){
		case 1: //TAG
			/*descString +=  
			'<div class="" style="width:auto; height:21px; margin-top:12px;">'+
			'<div class="" style="width:91; height:21px; float:left;">Name: </div>'+ 
			'<div class="" style="width:149; height:21px; float:left;">'+name+'</div>'+
			'</div>';
			 descString +=  
			'<div class="" style="width:auto; height:21px; margin-top:12px;">'+
			'<div class="" style="width:91; height:21px; float:left;">Description: </div>'+
			'<div class="" style="width:149; height:21px; float:left;">'+desc+'</div>'+
			'</div>';*/
			descString = 
				'<div class="" style="width:240px; height:90px;">'+
					'<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
					'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+name+'</div>'+
					'<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc+'</div>'+
				'</div>'+
				'<hr  width="100%" size="2" color="#2db2ff"/>'+
				'<div class="" style="width:240px; height:150px;">'+
					'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
						'<div class="form_1" style="width:91px; height:21px; float:left"></div> '+
						'<div class="form_2" style="width:135px; height:21px; float:left"></div>'+
					'</div>'+
					'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;"> ';
					if(ico!=''){
						descString += '<img src="vw_imgs/uz2/'+ico+'_pop.png" height="180" />';
					}
				descString += 	
					'</div>'+
				'</div>';
		break;
		
		case 2: //IATA
			var IATACODE = '';
			for(i=2;i<desc.length;i++){
				if(i<7){
					if(desc[i]!=''){
					IATACODE+=desc[i];
					}
				}
			}
			//desc[2]->desc[6]=>Tipo
			//desc[7]->desc[...]=>descrip
			descString = 
					'<div class="" style="width:240px; height:90px;">'+
						'<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
						'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+desc[7]+'</div>'+
						'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden;">'+IATACODE+'</div>'+
						'<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc[16]+'</div>'+
					'</div>'+
					'<hr  width="100%" size="2" color="#2db2ff"/>'+
					'<div class="" style="width:240px; height:auto;">'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left">Marca:</div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left">'+desc[8]+'</div>'+
						'</div>'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left">Modelo:</div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left">'+desc[9]+'</div>'+
						'</div>'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left">Año:</div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left">'+desc[10]+'</div>'+
						'</div>'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left">Valor:</div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left">'+desc[11]+'</div>'+
						'</div>'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left">Tamaño:</div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left">'+desc[12]+'x'+desc[13]+'x'+desc[14]+'</div>'+
						'</div>'+
						'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;"> ';
					if(desc[17]!=''){
						descString += '<img src="vw_imgs/user_bag/'+desc[17]+'" height="180" />';
					}else{
						descString += '<img src="vw_imgs/user_bag/noneBag.jpg" width="240" />';
					}
				descString += 	
						'</div>'+
					'</div>';
			
			
			//eliminarString = '<div class="" style="width:120px; height:30px; margin-left:32px; background:#F9F; float:left; text-align:center;" onClick="delItem('+id+');" onmouseover="this.style.cursor='+pointer+'">Eliminar</div>';
			eliminarString = '<div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:20px; margin-top:0px; background:#ff8b36; cursor:pointer;" onClick="delItem('+id+');" ><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">Eliminar</div>'+
        '</div>';
		break;
		
		case 3: //Objeto pic->../vw_imgs/user_bag/
			if(desc[0]==13){
				descString = 
					'<div class="" style="width:240px; height:90px;">'+
						'<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
						'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+desc[2]+'</div>'+
						'<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc[3]+'</div>'+
					'</div>'+
					'<hr  width="100%" size="2" color="#2db2ff"/>'+
					'<div class="" style="width:240px; height:150px;">'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left"></div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left"></div>'+
						'</div>'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left;">Tipo:</div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left; overflow:hidden;">'+desc[1]+'</div>'+
						'</div>'+
						'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;"> ';
					if(desc[4]!=''){
						descString += '<img src="vw_imgs/user_bag/'+desc[4]+'" height="180" />';
					}
				descString += 	
						'</div>'+
					'</div>';
			}else{
				descString = 
					'<div class="" style="width:240px; height:90px;">'+
						'<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
						'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+desc[2]+'</div>'+
						'<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc[3]+'</div>'+
					'</div>'+
					'<hr  width="100%" size="2" color="#2db2ff"/>'+
					'<div class="" style="width:240px; height:150px;">'+
						'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
							'<div class="form_1" style="width:91px; height:21px; float:left"></div> '+
							'<div class="form_2" style="width:135px; height:21px; float:left"></div>'+
						'</div>'+
						'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;"> ';
					if(desc[4]!=''){
						descString += '<img src="vw_imgs/user_bag/'+desc[4]+'" height="180" />';
					}
				descString += 	
						'</div>'+
					'</div>';
			}
			eliminarString = '<div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:20px; margin-top:0px; background:#ff8b36; cursor:pointer;" onClick="delItem('+id+');" ><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">Eliminar</div>'+
        '</div>';
		break;
		case 6:// SEGURO VIAJE
			descString = 
				'<div class="" style="width:240px; height:90px;">'+
					'<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
					'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+name+'</div>'+
					'<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc+'</div>'+
				'</div>'+
				'<hr  width="100%" size="2" color="#2db2ff"/>'+
				'<div class="" style="width:240px; height:150px;">'+
					'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
						'<div class="form_1" style="width:91px; height:21px; float:left"></div> '+
						'<div class="form_2" style="width:135px; height:21px; float:left"></div>'+
					'</div>'+
					'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;">';
					if(ico!=''){
						descString += '<img src="vw_imgs/uz2/'+ico+'_80px.png" height="180" />';
					}
				descString += 	
					'</div>'+
				'</div>';
		break;
		case 7:// SEGURO ANUAL
			descString = 
				'<div class="" style="width:240px; height:90px;">'+
					'<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
					'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+name+'</div>'+
					'<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc+'</div>'+
				'</div>'+
				'<hr  width="100%" size="2" color="#2db2ff"/>'+
				'<div class="" style="width:240px; height:150px;">'+
					'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
						'<div class="form_1" style="width:91px; height:21px; float:left"></div> '+
						'<div class="form_2" style="width:135px; height:21px; float:left"></div>'+
					'</div>'+
					'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;">';
					if(ico!=''){
						descString += '<img src="vw_imgs/uz2/'+ico+'_80px.png" height="180" />';
					}
				descString += 	
					'</div>'+
				'</div>';
		break;
		default:
				descString = 
				'<div class="" style="width:240px; height:90px;">'+
					'<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
					'<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+name+'</div>'+
					'<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc+'</div>'+
				'</div>'+
				'<hr  width="100%" size="2" color="#2db2ff"/>'+
				'<div class="" style="width:240px; height:150px;">'+
					'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
						'<div class="form_1" style="width:91px; height:21px; float:left"></div> '+
						'<div class="form_2" style="width:135px; height:21px; float:left"></div>'+
					'</div>'+
					'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;">';
					if(ico!=''){
						descString += '<img src="vw_imgs/uz2/'+ico+'_80px.png" height="180" />';
					}
				descString += 	
					'</div>'+
				'</div>';
		break;
	
	}
}else{
	/*descString =  '<div class="" style="width:auto; height:21px;">'+
            	'<div class="" style="width:91; height:21px; float:left;">Description: </div>'+
                '<div class="" style="width:149; height:21px; float:left;">_-_</div>'+
        		'</div>';*/
	descString = 
		'<div class="" style="width:240px; height:90px;">'+
            '<div id="pic" style="width:80px; height:80px; float:left; margin: 0px 5px 5px 0px; background:url(vw_imgs/uz2/'+ico+'_80px.png);  z-index:41;" ></div>'+
            '<div class="form_1" style="width:149px; height:21px; float:left; overflow:hidden; margin-top:20px;">'+name+'</div>'+
            '<div class="form_1" style="width:149px; height:auto; float:left;  overflow:hidden;">'+desc+'</div>'+
    	'</div>'+
        '<hr  width="100%" size="2" color="#2db2ff"/>'+
    	'<div class="" style="width:240px; height:150px;">'+
	    	'<div class="" style="width:auto; height:21px; margin-top:12px">'+ 
            	'<div class="form_1" style="width:91px; height:21px; float:left"></div> '+
                '<div class="form_2" style="width:135px; height:21px; float:left"></div>'+
        	'</div>'+
			'<div class="" style="width:240px; height:180px; overflow:hidden; text-align:center;"> ';
					if(ico!=''){
						descString += '<img src="vw_imgs/uz2/'+ico+'_80px.png" height="180" />';
					}
				descString += 	
        	'</div>'+
		'</div>';
}
if(eliminarString!=''){margenOK=37;}else{margenOK=124;}
/*var popupString = 
'<div class="" style="width:392px; height:550px; background: #FFF; float:left; overflow:hidden;">'+
    '<div class="" style="width:240px; height:390px; margin:16px 0 0 70px;">'+
    	//'<div class="" style="width:240px; height:240px;">'+ico+'</div>'+
		'<div class="" style="width:240px; height:240px; background:url(vw_imgs/uz2/'+ico+'_80px.png) center no-repeat;"></div>'+
    	'<div class="" style="width:240px; height:150px;">'+
	    descString+
        '</div>'+
		
    '</div>'+
    '<div class="" style="width:auto; height:30px; margin:104px 0 0 0;">'+
    	'<div class="" style="width:120px; height:30px; margin-left:'+margenOK+'px; background:#09F; float:left; text-align:center;" onClick="'+funcOK+'" onmouseover="this.style.cursor='+pointer+'">'+txtOK+'</div>'+
		eliminarString+
    '</div>'+
'</div>';*/
var popupString = 
'<div class="" style="width:392px; height:550px; background:#FFF; overflow:hidden;">'+
    '<div class="" style="width:240px; height:390px; margin:16px 0 0 70px; overflow:hidden;">'+ 
		descString+
	'</div>'+
	'<div class="" style="width:auto; height:30px; margin:104px 0 0 0;">'+
	
    	'<div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:'+margenOK+'px; margin-top:0px; background:#2db2ff; cursor:pointer;" onClick="'+funcOK+'" >'+
        '<div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtOK+'</div>'+
        '</div>'+
        eliminarString+
		
'</div>';


shadowPopup(popupString,x,y);
}

function popup_sosTel(uid){
var x=518;
var y=200;
var pointer='"pointer"';
var type='SOS Phone';
var txtOK='Aceptar';
var funcOK='saveTelSos('+uid+');';
var txtFail='Luego';
// parent.Shadowbox.close();
var popupString='<table id="body" width="'+x+'" height="'+y+'" border="0" cellpadding="0" cellspacing="0" style="overflow:hidden;"><tr><td rowspan="0"><div id="warp" style="background:#dbdbdb; width:'+x+'px; height:'+y+'px; float:left"><div id="warp" style="width:144px; height:146px; float:left; margin-left:0px; margin-top:0px;"><div id="warp" style=" font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:13px; color:#ff8b36; width:84px; height:20px; float:left; margin-left:25px; margin-top:20px;">'+type+'</div> <div id="warp" style="background:url(../vw_imgs/logo_alertas.png); width:84px; height:75px; float:left; margin-left:25px; margin-top:5px;"></div> </div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:left; font-size:12px; color:#666666; width:355px; height:45%; float:left; margin-left:10px; margin-top:25px; overflow:hidden;">Introduce Telefono sos.<br /><br /><label for="telSosInput">Telefono SOS:</label><input id="telSosInput" type="text" maxlength="20" /><div id="errorTelSOS" style="width:150px; color:#F00"></div></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:27px; margin-top:10px; background:#2db2ff; cursor:pointer;" onClick="'+funcOK+'" ><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtOK+'</div></div><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#666666; width:144px; height:22px; float:left; margin-left:20px; margin-top:10px; background:#ff8b36; cursor:pointer;" onClick="parent.Shadowbox.close();" ><div id="warp" style="font-family:Verdana, Geneva, sans-serif; font-weight:bold;text-align:center; font-size:12px; color:#fff; width:144px; height:10px; float:left; margin-left:0px; margin-top:4px;">'+txtFail+'</div></div></div></td></tr></table>';
shadowPopup(popupString,x,y);
}
