function gramise(){
				error=0;
				latitudGPS = document.getElementById('decimalLat').value;
				longitudGPS = document.getElementById('lonDecimal').value;
				
				if (latitudGPS.indexOf(",")!=-1){
					alert("ERROR: Utiliza \'.\' para separar decimales en vez de \',\'. (Ejemplo: 40.345233)");
				}
				
				if (longitudGPS.indexOf(",")!=-1){
					alert("ERROR: Utiliza \'.\' para separar decimales en vez de \',\'. (Ejemplo: 40.345233)");
				}
				
				if(document.getElementById('decimalLat').value < 0){signlat = -1;}
				
				latAbs = Math.abs( Math.round(document.getElementById('decimalLat').value * 1000000.));
				if(latAbs > (90 * 1000000)) { 
					alert('ERROR: Los Grados (º) de la Latitud varian entre -90 y 90.'); 
					document.getElementById('decimalLat').value = ''; 
					document.getElementById('decimalLat').focus;
					latAbs=0;
					error=1;
				}
			
				if(document.getElementById('lonDecimal').value < 0)  {signlon = -1;}
				
				lonAbs = Math.abs(Math.round(document.getElementById('lonDecimal').value * 1000000.));
				if(lonAbs > (180 * 1000000)) {  
					alert('ERROR: Los Grados (º) de la Longitud varian entre -180 y 180.'); 
					document.getElementById('lonDecimal').value='';  
					document.getElementById('lonDecimal').focus; 
					lonAbs=0; 
					
					error=1;
				}
				
				if (error==0){				
					document.getElementById('deglat').innerHTML = ((Math.floor(latAbs / 1000000) * signlat) + 'º ' + Math.floor(  ((latAbs/1000000) - Math.floor(latAbs/1000000)) * 60)  + '\' ' +  ( Math.floor(((((latAbs/1000000) - Math.floor(latAbs/1000000)) * 60) - Math.floor(((latAbs/1000000) - Math.floor(latAbs/1000000)) * 60)) * 100000) *60/100000 ) + '\"'  );				
					document.getElementById('deglon').innerHTML = ((Math.floor(lonAbs / 1000000) * signlon) + 'º ' + Math.floor(  ((lonAbs/1000000) - Math.floor(lonAbs/1000000)) * 60)  + '\' ' +  ( Math.floor(((((lonAbs/1000000) - Math.floor(lonAbs/1000000)) * 60) - Math.floor(((lonAbs/1000000) - Math.floor(lonAbs/1000000)) * 60)) * 100000) *60/100000 ) + '\"'  );
					muestragps();
				}
			signlat=1;
			signlon=1;
				
			}
function muestragps(){
	if(document.all){
		estadogps = mapG.style.display;
		mapG.style.display = 'block';
		load();
	}else{
		estadogps = document.getElementById("mapG").style.display; 
		document.getElementById("mapG").style.display = 'block';
		load();
	}
	window.scrollTo(0,400);
}
