// JavaScript Document
var accesible_banner1, accesible_productos;

accesible_banner1 ='TODO LO QUE BUSCAS EN TECNOLOGÍA PARA EL ESPECTACULO A SOLO UN... CLIC!';
accesible_productos ='';
accesible_localizacion ='<img src="images/mapa.png" width="600" height="347" />';
accesible_datos = '<img src="images/datos_uno_bilbao.jpg" alt="Datos uno bilbao" /><br />';
accesible_datos += 'UNO BILBAO.<br />C/ Ibarrekolanda 15.<br />48015 Bilbao(Bizkaia)<br />Telefonos: 944755131 944751485<br />Fax:944765356<br />www.unobilbao.com<br />unobilbao@unobilbao.com';

function poner_flash(peli,ancho,alto,accesible)
	{
		document.write('<object type="application/x-shockwave-flash" width="'+ancho+'" height="'+alto+'" data="'+peli+'">\n');
		document.write('<param name="movie" value="'+peli+'" />\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="wmode" value="transparent" />\n');
		document.write(accesible+'\n');
		document.write('</object>\n');
		return false;
	}
function comprobar(form)
	{
		if (form.frase.value=="")
			{	
				alert("Introduzca texto, por favor.")
				form.frase.focus();
				return false;
			}			
	}
function datos(form)
	{
		if (form.nombre.value=="")
			{	
				alert("Introduzca su nombre, por favor.")
				form.nombre.focus();
				return false;
			}
		var valor=form.email.value;
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(valor)))
			{
    			alert("La dirección de email parece incorrecta.");
				form.email.focus();
    			return false;
  			}
		form.Submit.disabled=true;
	}
function validar(form)
	{
		if (form.nombre.value=="")
			{	
				alert("Introduzca su nombre, por favor.")
				form.nombre.focus();
				return false;
			}
		var valor=form.email.value;
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(valor)))
			{
    			alert("La dirección de email parece incorrecta.");
				form.email.focus();
    			return false;
  			}
//		if (!(form.forma_pago[0].checked || form.forma_pago[1].checked || form.forma_pago[2].checked || form.forma_pago[3].checked))
	//		{	
		//		alert("Seleccione la forma de pago, por favor.")
			//	return false;
//			}
	//	if (!(form.condicion.checked))
		//	{	
			//	alert("Debe aceptar las condiciones del pedido.")
				//return false;
//			}
		form.Submit.disabled=true;
	}
function condiciones()
		{
			var condi = window.open('condiciones_generales.htm','Condiciones','scrollbars=1,resizable=1,width=800,height=750,top=25,left=25');
			return false;
		}
function simular(importe)
	{
		var simulador=window.open('https://www.cofidisonline.cofidis.es/FinanciacionEstandar/calcular?partner=UNO&codextern&producto=45&carencia=0&importe='+importe,'financing_popup','WIDTH=368,HEIGHT=550,SCROLLBARS=yes,left=200,top=200');
		return false;
	}
