// JavaScript Document
function objetoAjax(){
var xmlhttp=false; 
try { 
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
} catch (e) { 
try { 
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
} catch (E) { 
xmlhttp = false; 
} 
} 

if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
xmlhttp = new XMLHttpRequest(); 
} 
return xmlhttp; 
} 
/*function guardo_talles_elegidos(){ 
prueba = document.getElementById("mensaje");
prueba.innerHTML = "<img src='../../../images/preloader_redondo1.gif' width='20' height='20' border='0'> Guardando datos..."
ajax=objetoAjax(); 
ajax.open("POST", "guardo_talles_elegidos.php?campo1=document.getElementById('chk1').value"); 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.onreadystatechange=function() { 
setTimeout( "end();", 900); 

} 
ajax.send(null)

}

function end(){
	if (ajax.readyState==4) {
		
		prueba.innerHTML = ajax.responseText
		$(prueba).fadeIn(100).fadeOut(100).fadeIn(100);
	}
		
}	*/

function reload_image()
{
  document.getElementById('captcha').src = "securimage/securimage_show.php?" + Math.random();
}

function quit_pic(elid, numerofoto){
	divfotito = document.getElementById("petitpic"+numerofoto);	
	divboton = document.getElementById("btn_pic"+numerofoto);
	divboton.innerHTML = "Wait...";
	ajax=objetoAjax(); 
	ajax.open("POST", "quit_pic.php",true); 
	ajax.onreadystatechange=function() { 
		if (ajax.readyState==4) { 
			setTimeout("end_quit_pic("+elid+", "+numerofoto+")", 700);
		} 
	} 
	ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
	ajax.send("id="+elid+"&foto="+numerofoto) ;
}
function end_quit_pic(elid, numfoto){
	divboton.innerHTML = "";
	divfotito.innerHTML = "<img src='show_image_crop.php?filename=../../../fotos/store/articulos/no-art.jpg&width=50&height=50&tamano=45 border='0'/>";
}

function valido_customize(form){ 
	if (form.txt_company.value.length < 1) {
		showmsg("Please enter the company name", "err");
	}else if(form.txt_name.value.length < 1) {
		showmsg("Please enter your name", "err");
	}else if(form.txt_email.value.length < 1) {
		showmsg("Please enter your email", "err");
	}else if(form.txt_phone.value.length < 1) {
		showmsg("Please enter your phone", "err");
	}else if(form.txt_location.value.length < 1) {
		showmsg("Please enter your location", "err");
	}else{
		showmsg("Please wait...", "ok");
	}
} 

function showmsg(msg, estado){
	divalertas = document.getElementById("alertas");	
	divalertas.innerHTML = msg;
	if(estado == "err"){
		divalertas.className = "alertas";
	}else{
		divalertas.className = "alertas_ok";
		form.submit();
	}
	$(divalertas).fadeIn(400);
	setTimeout( "oculto_alerta();", 5000);
}

function oculto_alerta(){
	$(divalertas).fadeOut(400);
}

function valido_comentario(form){ 
	if (form.txt_tunombre.value.length < 1) {
		showmsg_comentario("Please enter your name", "err");
	}else if(form.txt_comentario.value.length < 1) {
		showmsg_comentario("Please enter the comment", "err");
	}else{
		showmsg_comentario("Please wait...", "ok");
	}
} 

function showmsg_comentario(msg, estado){
	divalertas = document.getElementById("alerta_blog");	
	divalertas.innerHTML = msg;
	if(estado == "err"){
		divalertas.className = "alertas";
	}else{
		divalertas.className = "alertas_ok";
		form.submit();
	}
	$(divalertas).fadeIn(400);
	setTimeout( "oculto_alerta_comentario();", 5000);
}

function oculto_alerta_comentario(){
	$(divalertas).fadeOut(400);
}


function guardo_store_articulo(){ 

if (f1.categoria.selectedIndex==0){
	alert("Please choose a category");
	return(false);
}
if (f1.txt_nombre.value.length < 1) {
	alert("Please enter the name of the article");
	return(false);
}
if(f1.txt_precioactual.value.length < 1) {
	alert("Please enter the price of the article, and must be a numeric value");
	return(false);
}
if(isNaN(f1.txt_precioactual.value)) {
	alert("Please enter the price of the article, and must be a numeric value");
	return(false);
}
if(f1.txt_enstock.value.length > 0 && isNaN(f1.txt_enstock.value)) {
	alert("The quantity in sotck must be a numerc value");
	return(false);
}



//else{
	/*
	prueba = document.getElementById("mensaje");
	prueba1 = document.getElementById("preloader");
	prueba1.innerHTML = "<img src='../../../images/preloader_redondo1.gif' width='20' height='20' border='0'> "
	$(prueba1).fadeIn(100);
	prueba.innerHTML = "Guardando datos..."
	if(!f1.chk_activo.checked){
		chkact = 0;
	}else{
		chkact = 1;
	}
		
	valores= 'categoria='+f1.categoria.value+'&txt_nombre='+f1.txt_nombre.value+'&txt_descripcion='+f1.txt_descripcion.value+'&txt_precioviejo='+f1.txt_precioviejo.value+'&txt_precioactual='+f1.txt_precioactual.value+'&txt_enstock='+f1.txt_enstock.value+'&chk_activo='+chkact+'&txt_foto1='+f1.txt_foto1.value+'&txt_foto2='+f1.txt_foto2.value
	ajax=objetoAjax(); 
	ajax.open("POST", "guardo_store_articulo_nuevo.php",true); 
	ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	//ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
	ajax.onreadystatechange=function() { 
	setTimeout( "end2();", 900); 
	
	} 
	
	ajax.send(valores)
	
	}
	return(true);*/
} 




function end2(){
	if (ajax.readyState==4) {
		
		prueba.innerHTML = ajax.responseText
		$(prueba1).fadeOut(100);
		$(prueba).fadeIn(100).fadeOut(100).fadeIn(100);
		
	}
		
}

function add_cart(){ 
//cantidad = document.getElementById("txt_cant");
document.getElementById("bot_comprar").style.display="none";
document.getElementById("bot_espere").style.display="block";
var_items = document.getElementById("items");
pic_carrito = document.getElementById("foto_carrito");
//prueba.innerHTML = "<img src='../../../images/preloader_redondo1.gif' width='20' height='20' border='0'> Guardando datos..."
ajax=objetoAjax(); 
ajax.open("GET", 'add_cart.php?artid='+document.getElementById("artid").value+'&nombre='+document.getElementById("nombre").value+'&cant='+document.getElementById("txt_cant").value+'&precio='+document.getElementById("precio").value); 
ajax.onreadystatechange=function() { 
setTimeout( "end();", 900); 

} 
ajax.send(null)

}

function end(){
	if (ajax.readyState==4) {
		
		var_items.innerHTML = ajax.responseText
		
		$(pic_carrito).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
		document.getElementById("bot_espere").style.display="none";
		document.getElementById("bot_comprar").style.display="block";
		
	}
		
}	




//==================
function switch_pic(foto, ancho, alto){ 
pic_cargada = "<img src='images/preloader_redondo1.gif' width='30' height='30' border='0' align='middle'>"

var_pic = document.getElementById("pic");
var_pic.innerHTML = "<table width=273><tr><td height=265 valign=middle>"+pic_cargada+"<br><br><span class='blanco12'>Loading picture...</span></td></tr></table>"
lafoto = "<img src=show_image_crop.php?filename=fotos/store/articulos/"+foto+"&width="+ancho+"&height="+alto+"&tamano=273 border=0/>"
setTimeout( "end_switch_pic('"+lafoto+"', '"+foto+"');", 1300); 

}

function end_switch_pic(lapic, solopic){
	
		var_pic.innerHTML = "<a href='fotos/store/articulos/"+solopic+"?height=600&width=800' class='thickbox'>"+lapic+"</a>";
		tb_init( '#pic a.thickbox' );
}	


//==================
function show_bigpic(foto, ancho, alto, comment){ 
pic_cargada = "<div class='preloader40' border='0' align='middle'></div>"
var_pic = document.getElementById("big_pic");
div_comment = document.getElementById("big_pic_comment");
div_comment.innerHTML = "";
var_pic.innerHTML = "<table width=415><tr><td height=265 valign=middle align=center>"+pic_cargada+"<br><br><span class='blanco12'>Loading picture...</span></td></tr></table>"
//lafoto = "<img src=show_image_crop1.php?filename=fotos/articulos/"+foto+"&width="+ancho+"&height="+alto+" border=0/>"
lafoto = "<img src=show_image_crop1.php?filename=fotos/articulos/"+foto+"&width=415&height="+alto+" border=0/>"
setTimeout( "end_show_bigpic('"+lafoto+"', '"+foto+"', '"+comment+"');", 1300); 

}

function end_show_bigpic(lapic, solopic, comment){
	
		var_pic.innerHTML = "<a href='fotos/articulos/"+solopic+"?height=1000&width=1000' class='thickbox'>"+lapic+"</a>";
		div_comment.innerHTML = "<span class='titulo_categoria14_sinlink'>"+comment+"</span>";
		tb_init( '#big_pic a.thickbox' );
}

//==================
function show_bigpic1(foto, ancho, alto, artid){ 
pic_cargada = "<div class='preloader40' border='0' align='middle'></div>"
var_pic = document.getElementById("big_pic");
div_comment = document.getElementById("big_pic_comment");
div_comment.innerHTML = "";
var_pic.innerHTML = "<table width=415><tr><td height=265 valign=middle align=center>"+pic_cargada+"<br><br><span class='blanco12'>Loading picture...</span></td></tr></table>"
lafoto = "<img src=show_image_crop1.php?filename=fotos/articulos/"+foto+"&width=415&height="+alto+" border=0/>"
ajax=objetoAjax(); 
ajax.open("POST", "getcomment.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		div_comment.innerHTML = "<span class='titulo_categoria14_sinlink'>"+ajax.responseText+"</span>";
		setTimeout( "end_show_bigpic1('"+lafoto+"', '"+foto+"');", 1300); 
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("artid="+artid)

} 



function end_show_bigpic1(lapic, solopic){
	
		var_pic.innerHTML = "<a href='fotos/articulos/"+solopic+"?height=1000&width=1000' class='thickbox'>"+lapic+"</a>";
		tb_init( '#big_pic a.thickbox' );
}

function del_line(qlinea){ 
divcarrito = document.getElementById("lugar_carrito");
cart_pre = document.getElementById("cart_preloader");
cart_pre_text = document.getElementById("cart_preloader_text");
cart_pre.innerHTML = "<img src='images/preloader_redondo1.gif' width='20' height='20' border='0'>"
cart_pre_text.innerHTML = "Updating cart..."
//prueba.innerHTML = "<img src='../../../images/preloader_redondo1.gif' width='20' height='20' border='0'> Guardando datos..."
ajax=objetoAjax(); 
ajax.open("GET", 'del_line_cart.php?id='+qlinea); 
ajax.onreadystatechange=function() { 
setTimeout( "end_del();", 100); 

} 
ajax.send(null)

}

function end_del(){
	if (ajax.readyState==4) {
		
			//var spl = valordelitems.split('|||');   Este recorta una cadena de string q tengan ||| comos eparador y devuelve sp1[0],sp2[1],etc dependiendo de la cantidad de separadores
			show_cant_items();
			divcarrito.innerHTML =  ajax.responseText;
			
			cart_pre.innerHTML = ""
			cart_pre_text.innerHTML = ""
			
		
	}
		
}

function rem_cant(qlinea){ 
divcarrito = document.getElementById("lugar_carrito");
cart_pre = document.getElementById("cart_preloader");
cart_pre_text = document.getElementById("cart_preloader_text");
cart_pre.innerHTML = "<img src='images/preloader_redondo1.gif' width='20' height='20' border='0'>"
cart_pre_text.innerHTML = "Updating cart..."
//prueba.innerHTML = "<img src='../../../images/preloader_redondo1.gif' width='20' height='20' border='0'> Guardando datos..."
ajax=objetoAjax(); 
ajax.open("GET", 'remove_cant_cart.php?id='+qlinea); 
ajax.onreadystatechange=function() { 
setTimeout( "end_rem();", 100); 

} 
ajax.send(null)

}

function end_rem(){
	if (ajax.readyState==4) {
		
			//var spl = valordelitems.split('|||');   Este recorta una cadena de string q tengan ||| comos eparador y devuelve sp1[0],sp2[1],etc dependiendo de la cantidad de separadores
			show_cant_items();
			divcarrito.innerHTML =  ajax.responseText;
			
			cart_pre.innerHTML = ""
			cart_pre_text.innerHTML = ""
			
		
	}
		
}

function add_cant(qlinea){ 
divcarrito = document.getElementById("lugar_carrito");
cart_pre = document.getElementById("cart_preloader");
cart_pre_text = document.getElementById("cart_preloader_text");
cart_pre.innerHTML = "<img src='images/preloader_redondo1.gif' width='20' height='20' border='0'>"
cart_pre_text.innerHTML = "Updating cart..."
//prueba.innerHTML = "<img src='../../../images/preloader_redondo1.gif' width='20' height='20' border='0'> Guardando datos..."
ajax=objetoAjax(); 
ajax.open("GET", 'add_cant_cart.php?id='+qlinea); 
ajax.onreadystatechange=function() { 
setTimeout( "end_add();", 100); 

} 
ajax.send(null)

}

function end_add(){
	if (ajax.readyState==4) {
		
			//var spl = valordelitems.split('|||');   Este recorta una cadena de string q tengan ||| comos eparador y devuelve sp1[0],sp2[1],etc dependiendo de la cantidad de separadores
			
			show_cant_items();
			divcarrito.innerHTML =  ajax.responseText;
			cart_pre.innerHTML = ""
			cart_pre_text.innerHTML = ""
			
		
	}
		
}

function activar_desactivar_art(registroid, opcion){ 
divcelda = document.getElementById(registroid);
divcelda.innerHTML = "<span class='alertas'>Wait...</span>"
ajax=objetoAjax(); 
ajax.open("GET", 'activo_desactivo_articulo.php?id='+registroid+'&opcion='+opcion); 
ajax.onreadystatechange=function() { 
setTimeout( "end_desactivar_art("+registroid+","+opcion+");", 100); 

} 
ajax.send(null)

}

function end_desactivar_art(regid, option){
	if (ajax.readyState==4) {
		
			//var spl = valordelitems.split('|||');   Este recorta una cadena de string q tengan ||| comos eparador y devuelve sp1[0],sp2[1],etc dependiendo de la cantidad de separadores
			if(option == 1){
				divcelda.innerHTML =  "<a href=javascript:activar_desactivar_art("+regid+",0) class=blanco12>Deactivate</a>";
			}else{
				divcelda.innerHTML =  "<a href=javascript:activar_desactivar_art("+regid+",1) class=gris12>Activate</a>";	
			}
		
	}
		
}

function show_cant_items(){
			divitems = document.getElementById("items");
			pic_carrito = document.getElementById("foto_carrito");
			ajaxa=objetoAjax(); 
			ajaxa.open("GET", 'show_cant_items.php?id=1'); 
			ajaxa.onreadystatechange=function() { 
			//setTimeout( "end_del();", 900); 
				if (ajaxa.readyState==4) {
					divitems.innerHTML =  ajaxa.responseText;
					$(pic_carrito).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
				}
			} 
			ajaxa.send(null)
				
}

function optionShowArts(){ 

catid= document.f1.categoria.value; 
divResultado = document.getElementById("divarticulos");

ajax=objetoAjax(); 
ajax.open("POST", "optionShowArts.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		
		divResultado.innerHTML = ajax.responseText
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("catid="+catid) 
} 

function optionShowArts1(){ 

catid= document.f1.categoria.value; 
divResultado = document.getElementById("divarticulos");

ajax=objetoAjax(); 
ajax.open("POST", "optionShowArts1.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		
		divResultado.innerHTML = ajax.responseText
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("catid="+catid) 
} 

function optionShowArts2(){ 

catid= document.f1.categoria.value; 
divResultado = document.getElementById("divarticulos");

ajax=objetoAjax(); 
ajax.open("POST", "optionShowArts2.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		
		divResultado.innerHTML = ajax.responseText
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("catid="+catid) 
} 

function agrego_talle_art(opcionid){ 

articuloid = document.f1.articulos.value; 
divPreloader = document.getElementById("preloader");
divPreloader.innerHTML = "<span class=blanco12>Saving...</span>";
ajax=objetoAjax(); 
ajax.open("POST", "agrego_talle_milista.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		divPreloader.innerHTML = ajax.responseText
		optionShowTalles(articuloid);
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("opcionid="+opcionid+"&articuloid="+articuloid)

} 

function optionShowTalles(){ 

articuloid= document.f1.articulos.value; 
divResultado = document.getElementById("talles_elegidos");
if(articuloid != 0){
	document.getElementById("link_agregar_talles_des").style.display = "none";
	document.getElementById("link_agregar_talles_hab").style.display = "block";	
	document.getElementById("link_quitar_talles_des").style.display = "none";
	document.getElementById("link_quitar_talles_hab").style.display = "block";	
}else{
	document.getElementById("link_agregar_talles_des").style.display = "block";
	document.getElementById("link_agregar_talles_hab").style.display = "none";
	document.getElementById("link_quitar_talles_des").style.display = "block";
	document.getElementById("link_quitar_talles_hab").style.display = "none";
}
ajax=objetoAjax(); 
ajax.open("POST", "optionShowTalles.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
	
	
		divResultado.innerHTML = ajax.responseText
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("articuloid="+articuloid+"&opcionid=2") 
} 

function optionShowColores(){ 

articuloid= document.f1.articulos.value; 
divResultado = document.getElementById("colores_elegidos");
if(articuloid != 0){
	document.getElementById("link_agregar_colores_des").style.display = "none";
	document.getElementById("link_agregar_colores_hab").style.display = "block";	
	document.getElementById("link_quitar_colores_des").style.display = "none";
	document.getElementById("link_quitar_colores_hab").style.display = "block";	
}else{
	document.getElementById("link_agregar_colores_des").style.display = "block";
	document.getElementById("link_agregar_colores_hab").style.display = "none";
	document.getElementById("link_quitar_colores_des").style.display = "block";
	document.getElementById("link_quitar_colores_hab").style.display = "none";
}
ajax=objetoAjax(); 
ajax.open("POST", "optionShowColores.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
	
	
		divResultado.innerHTML = ajax.responseText
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("articuloid="+articuloid+"&opcionid=1") 
} 

function optionShowSleeves(){ 

articuloid= document.f1.articulos.value; 
divResultado = document.getElementById("mangas_elegidas");
if(articuloid != 0){
	document.getElementById("link_agregar_mangas_des").style.display = "none";
	document.getElementById("link_agregar_mangas_hab").style.display = "block";	
	document.getElementById("link_quitar_mangas_des").style.display = "none";
	document.getElementById("link_quitar_mangas_hab").style.display = "block";	
}else{
	document.getElementById("link_agregar_mangas_des").style.display = "block";
	document.getElementById("link_agregar_mangas_hab").style.display = "none";
	document.getElementById("link_quitar_mangas_des").style.display = "block";
	document.getElementById("link_quitar_mangas_hab").style.display = "none";
}
ajax=objetoAjax(); 
ajax.open("POST", "optionShowMangas.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
	
	
		divResultado.innerHTML = ajax.responseText
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("articuloid="+articuloid+"&opcionid=3") 
} 

function quitar_talle(){ 

talleid = document.f1.talles_del_articulo.value; 
divPreloader = document.getElementById("preloader1");
divPreloader.innerHTML = "<span class=blanco12>Quiting, wait...</span>";
ajax=objetoAjax(); 
ajax.open("POST", "quito_talle_milista.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		divPreloader.innerHTML = ajax.responseText
		optionShowTalles(articuloid);
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("talleid="+talleid)

} 

function agrego_color_art(opcionid){ 

articuloid = document.f1.articulos.value; 
divPreloader = document.getElementById("preloader");
divPreloader.innerHTML = "<span class=blanco12>Saving...</span>";
ajax=objetoAjax(); 
ajax.open("POST", "agrego_color_milista.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		divPreloader.innerHTML = ajax.responseText
		optionShowColores(articuloid);
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("opcionid="+opcionid+"&articuloid="+articuloid)

} 
function quitar_color(){ 

talleid = document.f1.colores_del_articulo.value; 
divPreloader = document.getElementById("preloader1");
divPreloader.innerHTML = "<span class=blanco12>Quiting, wait...</span>";
ajax=objetoAjax(); 
ajax.open("POST", "quito_color_milista.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		divPreloader.innerHTML = ajax.responseText
		optionShowColores(talleid);
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("talleid="+talleid)

} 

function agrego_manga_art(opcionid){ 

articuloid = document.f1.articulos.value; 
divPreloader = document.getElementById("preloader");
divPreloader.innerHTML = "<span class=blanco12>Saving...</span>";
ajax=objetoAjax(); 
ajax.open("POST", "agrego_manga_milista.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		divPreloader.innerHTML = ajax.responseText
		optionShowSleeves(articuloid);
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("opcionid="+opcionid+"&articuloid="+articuloid)

} 
function quitar_mangas(){ 

mangaid = document.f1.mangas_del_articulo.value; 
divPreloader = document.getElementById("preloader1");
divPreloader.innerHTML = "<span class=blanco12>Quiting, wait...</span>";
ajax=objetoAjax(); 
ajax.open("POST", "quito_manga_milista.php",true); 
ajax.onreadystatechange=function() { 
	if (ajax.readyState==4) { 
		divPreloader.innerHTML = ajax.responseText
		optionShowSleeves(mangaid);
	} 
} 
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
ajax.send("mangaid="+mangaid)

} 

function show_combos(){
	div_art_completo = document.getElementById("articulo_completo");	
	
	//return document.getElementById("cmb_talles").value;	
	eltitulo = parent.document.getElementById("nombre").value;
	elsize = " size "+document.getElementById("cmb_talles").value;
	elcolor = " color "+document.getElementById("cmb_colores").value; 
	lamanga = " sleeve "+document.getElementById("cmb_mangas").value; 
	div_art_completo.innerHTML = eltitulo+ " " + elsize + " " + elcolor + " " + lamanga;
	document.getElementById("txt_article").value = eltitulo+ " " + elsize + " " + elcolor + " " + lamanga;
	//div_art_completo.innerHTML = eltitulo;
}

