Index: trunk/UTIL/PYTHON/mcd/fmcd5_gfortran.sh
===================================================================
--- trunk/UTIL/PYTHON/mcd/fmcd5_gfortran.sh	(revision 1219)
+++ trunk/UTIL/PYTHON/mcd/fmcd5_gfortran.sh	(revision 1276)
@@ -14,9 +14,11 @@
 ### LINKS
 NETCDF=/home/marshttp/NETCDF/netcdf64-4.0.1_gfortran_fPIC/
-wheremcd=/home/marshttp/MCD_v5.0//mcd/
+wheremcd=/home/marshttp/MCD_v5.1//mcd/
+num="5"
+#num="5_dev"
 
 ### LOG FILE
-touch fmcd5.log
-\rm fmcd5.log
+touch fmcd$num.log
+\rm fmcd$num.log
 
 ### COPY/PREPARE SOURCES
@@ -28,10 +30,10 @@
 
 ### BUILD THROUGH f2py WHAT IS NECESSARY TO CREATE THE PYTHON FUNCTIONS
-touch fmcd5.pyf
-\rm fmcd5.pyf
-f2py -h fmcd5.pyf -m fmcd5 tmp.call_mcd.F tmp.julian.F tmp.heights.F > fmcd5.log 2>&1
+touch fmcd$num.pyf
+\rm fmcd$num.pyf
+f2py -h fmcd$num.pyf -m fmcd$num tmp.call_mcd.F tmp.julian.F tmp.heights.F > fmcd$num.log 2>&1
 
 #### IMPORTANT: we teach f2py about variables in the call_mcd subroutines which are intended to be out
-sed s/"real :: pres"/"real, intent(out) :: pres"/g fmcd5.pyf | \
+sed s/"real :: pres"/"real, intent(out) :: pres"/g fmcd$num.pyf | \
 sed s/"real :: dens"/"real, intent(out) :: dens"/g | \
 sed s/"real :: temp"/"real, intent(out) :: temp"/g | \
@@ -41,9 +43,9 @@
 sed s/"real dimension(100) :: extvar"/"real dimension(100),intent(out) :: extvar"/g | \
 sed s/"real :: seedout"/"real, intent(out) :: seedout"/g | \
-sed s/"integer :: ier"/"integer, intent(out) :: ier"/g > fmcd5.pyf.modif
-mv fmcd5.pyf.modif fmcd5.pyf
+sed s/"integer :: ier"/"integer, intent(out) :: ier"/g > fmcd$num.pyf.modif
+mv fmcd$num.pyf.modif fmcd$num.pyf
 
 ### BUILD
-f2py -c fmcd5.pyf tmp.call_mcd.F tmp.julian.F tmp.heights.F --fcompiler=gnu95 \
+f2py -c fmcd$num.pyf tmp.call_mcd.F tmp.julian.F tmp.heights.F --fcompiler=gnu95 \
   -L$NETCDF/lib -lnetcdf \
   -lm -I$NETCDF/include \
@@ -51,5 +53,5 @@
   --f77flags="-fPIC" \
   --verbose \
-  > fmcd5.log 2>&1
+  > fmcd$num.log 2>&1
 #  --include-paths $NETCDF/include:$NETCDF/lib \ ---> makes it fail
 
Index: trunk/UTIL/PYTHON/mcd/mcd.py
===================================================================
--- trunk/UTIL/PYTHON/mcd/mcd.py	(revision 1219)
+++ trunk/UTIL/PYTHON/mcd/mcd.py	(revision 1276)
@@ -85,6 +85,6 @@
 
     def toversion5(self):
-        self.name      = "MCD v5.0"
-        self.dset      = '/home/marshttp/MCD_v5.0/data/'
+        self.name      = "MCD v5.1"
+        self.dset      = '/home/marshttp/MCD_v5.1/data/'
         self.extvarkey = np.ones(100)
 
@@ -187,6 +187,7 @@
         ### MCD version 5 new variables. AS 12/2012.
         if "v5" in self.name:
-          whichfield[29] = "not used (set to zero)"
-          whichfield[30] = "Surface roughness length z0 (m)"
+          whichfield[30] = whichfield[34]
+          whichfield[34] = "surface H2O ice layer (kg/m2, 0.5: perennial)"
+          whichfield[29] = "Surface roughness length z0 (m)"
           whichfield[37] = "DOD RMS day to day variations"
           whichfield[38] = "Dust mass mixing ratio (kg/kg)"
@@ -218,5 +219,5 @@
           whichfield[64] = "[H] vol. mixing ratio (mol/mol)"
           whichfield[65] = "[H2] vol. mixing ratio (mol/mol)"
-          whichfield[66] = "[electron] vol. mixing ratio (mol/mol)"
+          whichfield[66] = "electron number density (cm-3)"
           whichfield[67] = "CO2 column (kg/m2)"
           whichfield[68] = "N2 column (kg/m2)"
@@ -228,5 +229,5 @@
           whichfield[74] = "H column (kg/m2)"
           whichfield[75] = "H2 column (kg/m2)"
-          whichfield[76] = "electron column (kg/m2)"
+          whichfield[76] = "Total Electronic Content (TEC) (m-2)"
         if num not in whichfield: myplot.errormess("Incorrect subscript in extvar.")
         dastuff = whichfield[num]
@@ -276,5 +277,7 @@
         elif num == "swdown": num = 32
         elif num == "lwup": num = 33
-        elif num == "swup": num = 34
+        elif num == "swup":
+            if "v5" in self.name:  num = 30
+            else:                  num = 34
         elif num == "tau": num = 36
         elif num == "tau_ddv":
@@ -300,58 +303,67 @@
             else:                  num = 50
         elif num == "co2ice": num = 35
+        elif num == "n2":
+            if "v5" in self.name:  num = 58
+            else:                  num = 47
+        elif num == "n2col":
+            if "v5" in self.name:  num = 68
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "rdust":
             if "v5" in self.name:  num = 39
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "sdust":
             if "v5" in self.name:  num = 40
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "pbl":
             if "v5" in self.name:  num = 46
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "updraft":
             if "v5" in self.name:  num = 47
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "downdraft":
             if "v5" in self.name:  num = 48
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "pblwvar":
             if "v5" in self.name:  num = 49
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "pblhvar":
             if "v5" in self.name:  num = 50
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "stress":
             if "v5" in self.name:  num = 51
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "ar":
             if "v5" in self.name:  num = 59
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "o2":
             if "v5" in self.name:  num = 62
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "co2col":
             if "v5" in self.name:  num = 67
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "arcol":
             if "v5" in self.name:  num = 69
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "cocol":
             if "v5" in self.name:  num = 70
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "o3col":
             if "v5" in self.name:  num = 73
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "hydro":
             if "v5" in self.name:  num = 64
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "hydro2":
             if "v5" in self.name:  num = 65
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "e":
             if "v5" in self.name:  num = 66
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif num == "ecol":
             if "v5" in self.name:  num = 76
-            else:                  num = 30 # an undefined variable to avoid misleading output
+            else:                  num = 11 # an undefined variable to avoid misleading output
+        elif num == "groundice":
+            if "v5" in self.name:  num = 34
+            else:                  num = 11 # an undefined variable to avoid misleading output
         elif not isinstance(num, np.int): myplot.errormess("field reference not found.")
         return num
Index: trunk/UTIL/PYTHON/mcd/proto/index5.html
===================================================================
--- trunk/UTIL/PYTHON/mcd/proto/index5.html	(revision 1219)
+++ trunk/UTIL/PYTHON/mcd/proto/index5.html	(revision 1276)
@@ -9,12 +9,13 @@
 </head>
 
-<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()">
-
-<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post" target="_blank"> 
+<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues('all','all');DefaultSpaceTime()">
+
+<!--<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post" target="_blank"> -->
+<form name="calendar" action="./cgi-bin/mcdcgi.py" method="get" target="_blank">
 <!-- aussi possible: get a la place de post. pour avoir un beau lien -->
 
 <center>
 <b style="font-size: 125%;">Mars Climate Database: The Web Interface</b><br>
-<a href="index5.html"><img src="PIA03610_red.jpg" height=80 width=1200></a><br>
+<a href="#" onclick="window.location.reload(true);"><img src="PIA03610_red.jpg" height=80 width=1200></a><br>
 </center>
 
@@ -50,5 +51,5 @@
 Solar longitude <input type="text" size="3" name="ls"> degrees<br />
 Local Time <input type="text" size="3" name="localtime" value="0."> Martian hour<br />
-<span style="font-size: 80%;">write a value (or) a range val1;val2 (or) 'all'</span><br />
+<span style="font-size: 80%;">write a value (or) a range 'val1 val2' (or) 'all'</span><br />
 <br />
 <input type="radio" name="datekeyhtml" value="0">
@@ -90,5 +91,5 @@
 <td align="center">
 <b>CUSTOMIZE COORDINATES ON MARS</b><br />
-<span style="font-size: 80%;">write a value (or) a range val1;val2 (or) 'all'</span><br />
+<span style="font-size: 80%;">write a value (or) a range 'val1 val2' (or) 'all'</span><br />
 <ul>
 <li>Latitude <input type="text" size="7" name="latitude" value="0."> degree North
@@ -122,5 +123,5 @@
 <li>Interpolate using MOLA topography <input type="radio" name="hrkey" value="1" checked /> on <input type="radio" name="hrkey" value="0" /> off </li>
 <li> MCD version
-<input type="radio" name="betatest" value="on"  checked /> 5.0
+<input type="radio" name="betatest" value="on"  checked /> 5.1
 </span>
 </li>
@@ -163,4 +164,5 @@
 <option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
 <option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
 <option value="pbl"           >Convective PBL height (m)</option>
 <option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
@@ -182,8 +184,10 @@
 <option value="co2col"        >CO2 column (kg/m2)</option>
 <option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
 <option value="cocol"         >CO column (kg/m2)</option>
 <option value="o3col"         >O3 column (kg/m2)</option>
 <option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
 <option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
 <option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
 <option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
@@ -192,6 +196,6 @@
 <option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
 <option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
-<option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
-<option value="ecol"          >e- column (kg/m2)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
 <option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
 <option value="visc"          >Air viscosity estimation (N s m-2)</option>
@@ -218,4 +222,5 @@
 <option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
 <option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
 <option value="pbl"           >Convective PBL height (m)</option>
 <option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
@@ -237,8 +242,10 @@
 <option value="co2col"        >CO2 column (kg/m2)</option>
 <option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
 <option value="cocol"         >CO column (kg/m2)</option>
 <option value="o3col"         >O3 column (kg/m2)</option>
 <option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
 <option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
 <option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
 <option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
@@ -247,6 +254,6 @@
 <option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
 <option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
-<option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
-<option value="ecol"          >e- column (kg/m2)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
 <option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
 <option value="visc"          >Air viscosity estimation (N s m-2)</option>
@@ -273,4 +280,5 @@
 <option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
 <option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
 <option value="pbl"           >Convective PBL height (m)</option>
 <option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
@@ -292,8 +300,10 @@
 <option value="co2col"        >CO2 column (kg/m2)</option>
 <option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
 <option value="cocol"         >CO column (kg/m2)</option>
 <option value="o3col"         >O3 column (kg/m2)</option>
 <option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
 <option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
 <option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
 <option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
@@ -302,6 +312,6 @@
 <option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
 <option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
-<option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
-<option value="ecol"          >e- column (kg/m2)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
 <option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
 <option value="visc"          >Air viscosity estimation (N s m-2)</option>
@@ -328,4 +338,5 @@
 <option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
 <option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
 <option value="pbl"           >Convective PBL height (m)</option>
 <option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
@@ -347,8 +358,10 @@
 <option value="co2col"        >CO2 column (kg/m2)</option>
 <option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
 <option value="cocol"         >CO column (kg/m2)</option>
 <option value="o3col"         >O3 column (kg/m2)</option>
 <option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
 <option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
 <option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
 <option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
@@ -357,6 +370,6 @@
 <option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
 <option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
-<option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
-<option value="ecol"          >e- column (kg/m2)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
 <option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
 <option value="visc"          >Air viscosity estimation (N s m-2)</option>
@@ -402,12 +415,12 @@
 <tr>
 <td align="center">
-<input type="button" value="Values" style="font-weight:bold" onClick="submit_form_beginner()"/>
-<input type="button" value="Daily cycle" style="font-weight:bold" onClick="PlaceValues2('all');submit_form_beginner()"/><br />
-<input type="button" value="Vertical profile" style="font-weight:bold" onClick="PlaceValues3('all');submit_form_beginner()"/>
+<input type="button" value="Values" style="font-weight:bold" onClick="CorrectValue();submit_form_beginner()"/>
+<input type="button" value="Daily cycle" style="font-weight:bold" onClick="CorrectValue();PlaceValues2('all');submit_form_beginner()"/><br />
+<input type="button" value="Vertical profile" style="font-weight:bold" onClick="CorrectValue();PlaceValues3('all');submit_form_beginner()"/>
 <input type="button" value="Global map" style="font-weight:bold" onClick="PlaceValues('all','all');submit_form_beginner()"/><br />
 </td>
 <td align="center">
 <input type="button" value="SUBMIT" style="font-weight:bold" onClick="submit_form()"/>
-<input type="button" value="RESET" style="font-weight:bold" onClick="window.open('index5.html','_self')"/><br />
+<input type="button" value="RESET" style="font-weight:bold" onClick="window.location.reload(true);"/><br />
 </td>
 <td align="center">
Index: trunk/UTIL/PYTHON/mcd/proto/index_dev.html
===================================================================
--- trunk/UTIL/PYTHON/mcd/proto/index_dev.html	(revision 1276)
+++ trunk/UTIL/PYTHON/mcd/proto/index_dev.html	(revision 1276)
@@ -0,0 +1,438 @@
+<!-- Author Aymeric Spiga LMD -->
+<!DOCTYPE html>
+<html>
+
+<head>
+<meta charset="utf-8" />
+<title>Mars Climate Database: The Web Interface</title>
+<script language="JavaScript" type="text/JavaScript" src="martian_time.js"></script>
+</head>
+
+<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues('all','all');DefaultSpaceTime()">
+
+<!--<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post" target="_blank"> -->
+<form name="calendar" action="./cgi-bin/mcdcgi.py" method="get" target="_blank">
+<!-- aussi possible: get a la place de post. pour avoir un beau lien -->
+
+<center>
+<b style="font-size: 125%;">Mars Climate Database: The Web Interface !! DEV VERSION !!</b><br>
+<a href="#" onclick="window.location.reload(true);"><img src="PIA03610_red.jpg" height=80 width=1200></a><br>
+</center>
+
+<table align="center" border="1" width="1200" bgcolor="#F6CECE">
+
+<tr>
+<td align="center">
+<i>Beginners' column (1-click presets)</i>
+</td>
+<td align="center">
+<i>Regular users' column</i>
+</td>
+<td align="center">
+<i>Advanced settings and information</i>
+</td>
+</tr>
+<tr><td align="center"></td><td align="center"></td><td align="center"></td></tr>
+<tr>
+<td align="center">
+<b>1) LANDING DATE</b>
+<input type="radio" name="lander" value="Now!" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.0,0.0)" checked>Land now!<br />
+<input type="radio" name="lander" value="Curiosity" onClick="DateAndTimeValues(2012,8,6,05,17,57);Convert2Ls();PlaceValues(137.4,-4.6)">Curiosity
+<input type="radio" name="lander" value="Phoenix" onClick="DateAndTimeValues(2008,5,25,23,38,23);Convert2Ls();PlaceValues(234.25,68.22)">Phoenix<br />
+<input type="radio" name="lander" value="Opportunity" onClick="DateAndTimeValues(2004,1,25,4,55,0);Convert2Ls();PlaceValues(354.47,-1.95)">Opportunity
+<input type="radio" name="lander" value="Spirit" onClick="DateAndTimeValues(2004,1,4,4,26,0);Convert2Ls();PlaceValues(175.48,-14.57)">Spirit
+<input type="radio" name="lander" value="Pathfinder" onClick="DateAndTimeValues(1997,7,4,16,56,55);Convert2Ls();PlaceValues(-33.22,19.13)">Pathfinder <br />
+<input type="radio" name="lander" value="Viking Lander 2" onClick="DateAndTimeValues(1976,9,3,22,58,20);Convert2Ls();PlaceValues(-225.74,47.97)">Viking Lander 2
+<input type="radio" name="lander" value="Viking Lander 1" onClick="DateAndTimeValues(1976,7,20,11,53,6);Convert2Ls();PlaceValues(-49.97,22.48)">Viking Lander 1<br />
+</td>
+<td align="center">
+<input type="radio" name="datekeyhtml" value="1" checked>
+<b><font color="red">MARS date</font></b> 
+Solar longitude <input type="text" size="3" name="ls"> degrees<br />
+Local Time <input type="text" size="3" name="localtime" value="0."> Martian hour<br />
+<span style="font-size: 80%;">write a value (or) a range 'val1 val2' (or) 'all'</span><br />
+<br />
+<input type="radio" name="datekeyhtml" value="0">
+<b><font color="blue">EARTH date</font></b> 
+YY / MM / DD @ hh:mm:ss<br />
+<input type="text" size="3" name="year"> / <input type="text" size="1" name="month"> / <input type="text" size="1" name="day"> @
+<input type="text" size="1" name="hours">:<input type="text" size="1" name="minutes">:<input type="text" size="1" name="seconds">
+UTC<br />
+</td>
+<td align="center">
+If longitude is a free dimension, local time value is<br />
+<input type="radio" name="isfixedlt" value="off" checked /> at longitude 0
+<input type="radio" name="isfixedlt" value="on"          /> fixed for the whole planet<br />
+<hr>
+Earth Julian Date <input type="text" size="6" name="julian" readonly="readonly" style="background-color : #F5DEB3;"><br />
+Mars year <input type="text" size="1" name="martianyear" readonly="readonly" style="background-color : #F5DEB3;"> 
+ - month <input type="text" size="1" name="martianmonth" readonly="readonly" style="background-color : #F5DEB3;"><span style="font-size: 75%;"> / 12</span>
+ - sol <input type="text" size="2" name="sol" readonly="readonly" style="background-color : #F5DEB3;"><span style="font-size: 75%;"> / 669</span><br />
+<input type="button" value="EARTH DATE >>> MARS DATE" onClick="Convert2Ls();"><br />
+</td>
+</tr>
+<tr>
+<td align="center">
+<hr>
+<b>2) TIME</b>
+<input type="radio" name="tata" value="Morning" onClick="PlaceValues2(9.)" checked>Morning
+<input type="radio" name="tata" value="Afternoon" onClick="PlaceValues2(15.)">Afternoon<br />
+<input type="radio" name="tata" value="Evening" onClick="PlaceValues2(21.)">Evening
+<input type="radio" name="tata" value="Night" onClick="PlaceValues2(3.)">Night<br />
+<hr>
+<b>3) ALTITUDE</b>
+<input type="radio" name="toto" value="Near surface" onClick="PlaceValues3(2.)" checked>Near-surface<br />
+<input type="radio" name="toto" value="Boundary layer" onClick="PlaceValues3(1000.)">Boundary layer
+<input type="radio" name="toto" value="Troposphere" onClick="PlaceValues3(10000.)">Troposphere<br/>
+<input type="radio" name="toto" value="Mesophere" onClick="PlaceValues3(80000.)">Mesosphere
+<input type="radio" name="toto" value="Thermosphere" onClick="PlaceValues3(180000.)">Thermosphere<br />
+<hr>
+</td>
+<td align="center">
+<b>CUSTOMIZE COORDINATES ON MARS</b><br />
+<span style="font-size: 80%;">write a value (or) a range 'val1 val2' (or) 'all'</span><br />
+<ul>
+<li>Latitude <input type="text" size="7" name="latitude" value="0."> degree North
+<li>Longitude <input type="text" size="7" name="longitude" value="0."> degree East
+<li>Altitude <input type="text" size="9" name="altitude" value="10."> <select name="zkey">
+<option value="3" selected>m above surface</option>
+<option value="2"         >m above "sea level"</option>
+<option value="1"         >m from Mars center</option>
+<option value="4"         >Pa (pressure level)</option>
+<!--
+<option value="5"         >above 3396 km from Mars center</option>
+-->
+</select>
+</ul>
+</td>
+<td align="center">
+<ul>
+<li>
+
+<a href="http://www-mars.lmd.jussieu.fr/mars/info_web/index.html">Dust/EUV scenario</a> 
+<select name="dust">
+<option value="1" selected>climatology ave solar</option>
+<option value="2"         >climatology min solar</option>
+<option value="3"         >climatology max solar</option>
+<option value="4"         >dust storm min solar</option>
+<option value="5"         >dust storm ave solar</option>
+<option value="6"         >dust storm max solar</option>
+<option value="7"         >warm (dusty, max solar)</option>
+<option value="8"         >cold (low dust, min solar)</option>
+</select></li>
+<li>Interpolate using MOLA topography <input type="radio" name="hrkey" value="1" checked /> on <input type="radio" name="hrkey" value="0" /> off </li>
+<li> MCD version
+<input type="radio" name="betatest" value="on"  checked /> TEST MCD TEST MCD <input type="radio" name="dev" value="on"  checked />
+</span>
+</li>
+</ul>
+</td>
+</tr>
+<tr>
+<td align="center">
+<b>4) INTEREST</b>
+<input type="radio" name="yeah" value="Atmosphere" onClick="PlaceVar('t','p','none','none');ChooseColor('jet')" checked>Atmosphere<br />
+<input type="radio" name="yeah" value="Winds" onClick="PlaceVar('wind','w','u','v');ChooseColor('RdBu_r')">Winds
+<input type="radio" name="yeah" value="Weather" onClick="PlaceVar('ps_ddv','rho_ddv','none','none');ChooseColor('RdBu_r')">Weather<br />
+<input type="radio" name="yeah" value="Water cycle" onClick="PlaceVar('h2ovap','mtot','h2oice','icetot');ChooseColor('Blues')">Water cycle
+<input type="radio" name="yeah" value="Chemistry" onClick="PlaceVar('o3','h2ovap','none','none');ChooseColor('jet')">Chemistry<br />
+<input type="radio" name="yeah" value="Landing engineering" onClick="PlaceVar('rho','visc','none','none');ChooseColor('YlOrRd')">Landing engineering<br />
+<input type="radio" name="yeah" value="Glaciology" onClick="PlaceVar('tsurfmn','tsurfmx','co2ice','icetot');ChooseColor('spectral')">Glaciology
+<input type="radio" name="yeah" value="Surface meteorology" onClick="PlaceVar('ps','tsurf','none','none');ChooseColor('jet')">Surface meteorology<br />
+<input type="radio" name="yeah" value="Radiative balance" onClick="PlaceVar('lwdown','swdown','lwup','swup');ChooseColor('hot')">Radiative balance<br />
+</td>
+<td align="center">
+<b>CUSTOMIZE VARIABLE(S) TO BE DISPLAYED</b><br />
+<br />
+Variable 1 <select name="var1">
+<option value="t"     selected>Temperature (K)</option>
+<option value="p"             >Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="wind"          >Horizontal wind (m/s)</option>
+<option value="w"             >Vertical wind (m/s, pos. when downward)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="tau"           >Dust column vis opt depth above surf</option>
+<option value="qdust"         >Dust mass mixing ratio (kg/kg)</option>
+<option value="rdust"         >Dust effective radius (m)</option>
+<option value="sdust"         >Dust deposition on flat surface (kg/m2/s)
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water cloud ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
+<option value="pbl"           >Convective PBL height (m)</option>
+<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
+<option value="updraft"       >Max PBL updraft wind (m/s)</option>
+<option value="downdraft"     >Max PBL downdraft wind (m/s)</option>
+<option value="pblwvar"       >PBL vert wind variance (m2/s2)</option>
+<option value="pblhvar"       >PBL eddy vert heat flux (m/s/K)</option>
+<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
+<option value="p_ddv"         >Pressure day to day variability (Pa)</option>
+<option value="t_ddv"         >Temperature day to day variability (K)</option>
+<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
+<option value="tau_ddv"       >Dust column day to day variability</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="co2col"        >CO2 column (kg/m2)</option>
+<option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
+<option value="cocol"         >CO column (kg/m2)</option>
+<option value="o3col"         >O3 column (kg/m2)</option>
+<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
+<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="o2"            >[O2] vol. mixing ratio (mol/mol)</option>
+<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
+<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+<br />
+Variable 2 <select name="var2">
+<option value="none"  selected>(None)</option>
+<option value="t"             >Temperature (K)</option>
+<option value="p"             >Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="wind"          >Horizontal wind (m/s)</option>
+<option value="w"             >Vertical wind (m/s, pos. when downward)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="tau"           >Dust column vis opt depth above surf</option>
+<option value="qdust"         >Dust mass mixing ratio (kg/kg)</option>
+<option value="rdust"         >Dust effective radius (m)</option>
+<option value="sdust"         >Dust deposition on flat surface (kg/m2/s)
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water cloud ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
+<option value="pbl"           >Convective PBL height (m)</option>
+<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
+<option value="updraft"       >Max PBL updraft wind (m/s)</option>
+<option value="downdraft"     >Max PBL downdraft wind (m/s)</option>
+<option value="pblwvar"       >PBL vert wind variance (m2/s2)</option>
+<option value="pblhvar"       >PBL eddy vert heat flux (m/s/K)</option>
+<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
+<option value="p_ddv"         >Pressure day to day variability (Pa)</option>
+<option value="t_ddv"         >Temperature day to day variability (K)</option>
+<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
+<option value="tau_ddv"       >Dust column day to day variability</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="co2col"        >CO2 column (kg/m2)</option>
+<option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
+<option value="cocol"         >CO column (kg/m2)</option>
+<option value="o3col"         >O3 column (kg/m2)</option>
+<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
+<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="o2"            >[O2] vol. mixing ratio (mol/mol)</option>
+<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
+<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+<br />
+Variable 3 <select name="var3">
+<option value="none"  selected>(None)</option>
+<option value="t"             >Temperature (K)</option>
+<option value="p"             >Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="wind"          >Horizontal wind (m/s)</option>
+<option value="w"             >Vertical wind (m/s, pos. when downward)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="tau"           >Dust column vis opt depth above surf</option>
+<option value="qdust"         >Dust mass mixing ratio (kg/kg)</option>
+<option value="rdust"         >Dust effective radius (m)</option>
+<option value="sdust"         >Dust deposition on flat surface (kg/m2/s)
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water cloud ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
+<option value="pbl"           >Convective PBL height (m)</option>
+<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
+<option value="updraft"       >Max PBL updraft wind (m/s)</option>
+<option value="downdraft"     >Max PBL downdraft wind (m/s)</option>
+<option value="pblwvar"       >PBL vert wind variance (m2/s2)</option>
+<option value="pblhvar"       >PBL eddy vert heat flux (m/s/K)</option>
+<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
+<option value="p_ddv"         >Pressure day to day variability (Pa)</option>
+<option value="t_ddv"         >Temperature day to day variability (K)</option>
+<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
+<option value="tau_ddv"       >Dust column day to day variability</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="co2col"        >CO2 column (kg/m2)</option>
+<option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
+<option value="cocol"         >CO column (kg/m2)</option>
+<option value="o3col"         >O3 column (kg/m2)</option>
+<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
+<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="o2"            >[O2] vol. mixing ratio (mol/mol)</option>
+<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
+<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+<br />
+Variable 4 <select name="var4">
+<option value="none"  selected>(None)</option>
+<option value="t"             >Temperature (K)</option>
+<option value="p"             >Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="wind"          >Horizontal wind (m/s)</option>
+<option value="w"             >Vertical wind (m/s, pos. when downward)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="tau"           >Dust column vis opt depth above surf</option>
+<option value="qdust"         >Dust mass mixing ratio (kg/kg)</option>
+<option value="rdust"         >Dust effective radius (m)</option>
+<option value="sdust"         >Dust deposition on flat surface (kg/m2/s)
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water cloud ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
+<option value="pbl"           >Convective PBL height (m)</option>
+<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
+<option value="updraft"       >Max PBL updraft wind (m/s)</option>
+<option value="downdraft"     >Max PBL downdraft wind (m/s)</option>
+<option value="pblwvar"       >PBL vert wind variance (m2/s2)</option>
+<option value="pblhvar"       >PBL eddy vert heat flux (m/s/K)</option>
+<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
+<option value="p_ddv"         >Pressure day to day variability (Pa)</option>
+<option value="t_ddv"         >Temperature day to day variability (K)</option>
+<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
+<option value="tau_ddv"       >Dust column day to day variability</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="co2col"        >CO2 column (kg/m2)</option>
+<option value="arcol"         >Ar column (kg/m2)</option>
+<option value="n2col"         >N2 column (kg/m2)</option>
+<option value="cocol"         >CO column (kg/m2)</option>
+<option value="o3col"         >O3 column (kg/m2)</option>
+<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
+<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
+<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="o2"            >[O2] vol. mixing ratio (mol/mol)</option>
+<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
+<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
+<option value="e"             >electron number density (cm-3)</option>
+<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+</td>
+<td align="center">
+<ul>
+<li> Set picture resolution
+<input type="radio" name="dpi" value="80" checked> medium
+<input type="radio" name="dpi" value="160"> high
+<input type="radio" name="dpi" value="eps"> eps
+</li>
+<li> Set colormap
+<select name="colorm">
+<option value="jet"       selected>blue green yellow red</option>
+<option value="Greys"             >grey</option>
+<option value="Blues"             >blue</option>
+<option value="YlOrRd"            >yellow orange red</option>
+<option value="spectral"          >rainbow</option>
+<option value="hot"               >black red yellow</option>
+<option value="RdBu_r"            >blue white red</option>
+</select>
+</li>
+<li> Set bounds in 2D plots
+<input type="text" size="2" name="minval"> min
+<input type="text" size="2" name="maxval"> max
+</li>
+<li> Wind vectors in lat/lon plot
+<input type="radio" name="iswind" value="off" checked /> off
+<input type="radio" name="iswind" value="on"          /> on</li>  
+</li>
+<li> Zonal average in lat/alt plot
+<input type="radio" name="zonmean" value="off" checked /> off
+<input type="radio" name="zonmean" value="on"          /> on
+</li>
+<li>Log(values) in 1D plots
+<input type="radio" name="islog" value="off" checked /> off
+<input type="radio" name="islog" value="on" /> on 
+</li>
+</ul>
+</td>
+</tr>
+<tr>
+<td align="center">
+<input type="button" value="Values" style="font-weight:bold" onClick="CorrectValue();submit_form_beginner()"/>
+<input type="button" value="Daily cycle" style="font-weight:bold" onClick="CorrectValue();PlaceValues2('all');submit_form_beginner()"/><br />
+<input type="button" value="Vertical profile" style="font-weight:bold" onClick="CorrectValue();PlaceValues3('all');submit_form_beginner()"/>
+<input type="button" value="Global map" style="font-weight:bold" onClick="PlaceValues('all','all');submit_form_beginner()"/><br />
+</td>
+<td align="center">
+<input type="button" value="SUBMIT" style="font-weight:bold" onClick="submit_form()"/>
+<input type="button" value="RESET" style="font-weight:bold" onClick="window.location.reload(true);"/><br />
+</td>
+<td align="center">
+<a href="http://www-mars.lmd.jussieu.fr">Mars Climate Database</a> (c) LMD/OU/IAA/ESA/CNES.<br />
+Interface written by <a href="http://www.lmd.jussieu.fr/~aslmd/">A. Spiga</a> (LMD) using Python.<br />
+Javascript time conversion by <a href="http://www.lmd.jussieu.fr/~emlmd">E. Millour</a> (<a href="http://www-mars.lmd.jussieu.fr/mars/time/martian_time.html">link</a>).
+</td>
+</tr>
+</table>
+</body>
+</html>
+
+<!--
+<input type="checkbox" name="maths" value="on" /> Maths
+-->
Index: trunk/UTIL/PYTHON/mcd/proto/martian_time.js
===================================================================
--- trunk/UTIL/PYTHON/mcd/proto/martian_time.js	(revision 1219)
+++ trunk/UTIL/PYTHON/mcd/proto/martian_time.js	(revision 1276)
@@ -363,4 +363,13 @@
 }
 
+
+function CorrectValue(){
+if ( document.calendar.longitude.value == "all") {
+  document.calendar.longitude.value = 0.
+}
+if ( document.calendar.latitude.value == "all") {
+  document.calendar.latitude.value = 0.
+}
+}
 
 function PlaceValues(lon,lat){
