function suscribirse_noticias()
{
	var mail="";
	var resultado ="";
	mail = document.getElementById('suscripcion').value;
	open('http://wwwhijar.lasosl.net/laso/web/laso_mail.aspx?mail='+escape(mail)+'&opcion=1','ventana_envio');
	document.getElementById('suscripcion').value="";
	/*resultado=devuelvesincrono('http://wwwhijar.lasosl.net/laso/web/laso_mail.aspx?mail='+escape(mail)+'&opcion=1');	
	if(resultado=="ok")
	{
		alert('Gracias por completar la suscripcion');
	}
	else
	{
		alert('Suscripcion no completada');	
	}*/
}
function enviar_contacte()
{
	var resultado="";
	var nombre="";
	var apellidos="";
	var direccion="";
	var cp="";
	var telefono="";
	var mail="";
	var consulta="";
	if(document.getElementById('nombre').value!=null)
	{
		nombre=document.getElementById('nombre').value;
	}
	if(document.getElementById('apellidos').value!=null)
	{
		apellidos=document.getElementById('apellidos').value;
	}
	if(document.getElementById('direccion').value!=null)
	{
		direccion=document.getElementById('direccion').value;
	}
	if(document.getElementById('cp').value!=null)
	{
		cp=document.getElementById('cp').value;
	}
	if(document.getElementById('telefono').value!=null)
	{
		telefono=document.getElementById('telefono').value;
	}
	if(document.getElementById('mail').value!=null)
	{
		mail=document.getElementById('mail').value;
	}
	if(document.getElementById('consulta').value!=null)
	{
		consulta=document.getElementById('consulta').value;
	}
	open('http://wwwhijar.lasosl.net/laso/web/laso_mail.aspx?nombre='+escape(nombre)+'&apellidos='+escape(apellidos)+'&direccion='+escape(direccion)+'&cp='+escape(cp)+'&telefono='+escape(telefono)+'&mail='+escape(mail)+'&consulta='+escape(consulta)+'&opcion=2','ventana_envio_contacto');
}
function cargar_departamento(valor)
{
	document.getElementById('departamento').value=valor;
}
function enviar_solicitud()
{
	var resultado="";
	var nombre="";
	var apellidos="";
	var direccion="";
	var cp="";
	var telefono="";
	var mail="";
	var consulta="";
	var departamento="";
	
	if(document.getElementById('departamento').value!=null)
	{
		departamento=document.getElementById('departamento').value;
	}
	if(document.getElementById('nombre').value!=null)
	{
		nombre=document.getElementById('nombre').value;
	}
	if(document.getElementById('apellidos').value!=null)
	{
		apellidos=document.getElementById('apellidos').value;
	}
	if(document.getElementById('direccion').value!=null)
	{
		direccion=document.getElementById('direccion').value;
	}
	if(document.getElementById('cp').value!=null)
	{
		cp=document.getElementById('cp').value;
	}
	if(document.getElementById('telefono').value!=null)
	{
		telefono=document.getElementById('telefono').value;
	}
	if(document.getElementById('mail').value!=null)
	{
		mail=document.getElementById('mail').value;
	}
	if(document.getElementById('incidencia').value!=null)
	{
		consulta=document.getElementById('incidencia').value;
	}
	open('http://wwwhijar.lasosl.net/laso/web/laso_mail.aspx?departamento='+escape(departamento)+'&nombre='+escape(nombre)+'&apellidos='+escape(apellidos)+'&direccion='+escape(direccion)+'&cp='+escape(cp)+'&telefono='+escape(telefono)+'&mail='+escape(mail)+'&consulta='+escape(consulta)+'&opcion=3','ventana_envio_solicitud');

	/*resultado=devuelvesincrono('http://wwwhijar.lasosl.net/laso/web/laso_mail.aspx?departamento='+escape(departamento)+'&nombre='+escape(nombre)+'&apellidos='+escape(apellidos)+'&direccion='+escape(direccion)+'&cp='+escape(cp)+'&telefono='+escape(telefono)+'&mail='+escape(mail)+'&consulta='+escape(consulta)+'&opcion=3');
	if(resultado=="ok")
	{
		alert('Solicitud enviada correctamente');
	}
	else
	{
		alert('La solicitud no puede ser enviada');	
	}	*/							
}
/*

function isEmpty(str) 
{
  // Check whether string is empty.
  for (var intLoop = 0; intLoop < str.length; intLoop++)
	 if (" " != str.charAt(intLoop))
			return false;
  
  return true;
}

function checkRequired(f) 
{
var strError = "";
for (var intLoop = 0; intLoop < f.elements.length; intLoop++)
if (null!=f.elements[intLoop].getAttribute("required")) 
	if ((f.elements[intLoop].type == "checkbox" && !f.elements[intLoop].checked) || (f.elements[intLoop].type != "checkbox" && isEmpty(f.elements[intLoop].value)))
		strError += "  " + f.elements[intLoop].name + "\n";
if ("" != strError) {
	alert("Los siguientes datos requeridos son necesarios:\n" + strError);
	return false;
} 
else
	return true       
}
*/


function cargar_mapa() 
{
	var latlng = new google.maps.LatLng(41.659332783265924, -0.8962547779083252);
	var settings = {
		zoom: 13,
		center: latlng,
		mapTypeControl: true,
		mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
		navigationControl: true,
		navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
		mapTypeId: google.maps.MapTypeId.ROADMAP};
	var map = new google.maps.Map(document.getElementById("ver_mapa"), settings);
	
	var contentString = '<h4 id="firstHeading" class="firstHeading">Laso, S.L.</h4>'+
		'<div id="bodyContent"><h5>'+
		'Pablo Gargallo 25, Local 23<br>'+
		'50003 Zaragoza<br>'+
		'Tel. 976 281 611<br>'+			
		'Fax. 976 281 561</h5>'+
		'</div>';
	var infowindow = new google.maps.InfoWindow({
		content: contentString
	});
	
	var companyImage = new google.maps.MarkerImage('Images/marca.gif',
		new google.maps.Size(24,38),
		new google.maps.Point(0,0),
		new google.maps.Point(0,0)
	);

	var companyShadow = new google.maps.MarkerImage('Images/marca_sombra.png',
		new google.maps.Size(24,38),
		new google.maps.Point(0,0),
		new google.maps.Point(0,0));

	var companyPos = new google.maps.LatLng(41.659332783265924, -0.8962547779083252);

	var companyMarker = new google.maps.Marker({
		position: companyPos,
		map: map,
		icon: companyImage,
		shadow: companyShadow,
		title:"Laso, S.L.",
		zIndex: 3});
	
	var trainImage = new google.maps.MarkerImage('Images/marca.gif',
		new google.maps.Size(24,38),
		new google.maps.Point(0,0),
		new google.maps.Point(0,0)
	);
	
		google.maps.event.addListener(companyMarker, 'click', function() {
		infowindow.open(map,companyMarker);

	});
}



/*
function piedras_de_rio()
{
	llamarasincrono('productos_piedras_de_rio.htm','contenidos');	
}
*/
