function listOByMig( oMig )
{
   document.getElementById('lType').value = "OfficeMig";
   document.getElementById('target').value = oMig;
}

function listOByMob( oMob )
{
   document.getElementById('lType').value = "OfficeMob";
   document.getElementById('target').value = oMob;
}

function listOByState( oState )
{
   document.getElementById('lType').value = "OfficeState";
   document.getElementById('target').value = oState;
}

function listOByClasf( oClasf )
{
   document.getElementById('lType').value = "OfficeClasf";
   document.getElementById('target').value = oClasf;
}



function showMobileList()
{
   var mobile, mLocation, mMunicipioUbi, mParroquiaUbi;
   switch ( gBId('weekDay').value )
   {
      case "1":
         mobile = sunmobile;
         mLocation = sunlocation;
         mMunicipioUbi = sunmunicipioubi;
         mParroquiaUbi = sunparroquiaubi;
         break;
      case "2":
         mobile = monmobile;
         mLocation = monlocation;
         mMunicipioUbi = monmunicipioubi;
         mParroquiaUbi = monparroquiaubi;
         break;
      case "3":
         mobile = tuemobile;
         mLocation = tuelocation;
         mMunicipioUbi = tuemunicipioubi;
         mParroquiaUbi = tueparroquiaubi;
         break;
      case "4":
         mobile = wedmobile;
         mLocation = wedlocation;
         mMunicipioUbi = wedmunicipioubi;
         mParroquiaUbi = wedparroquiaubi;
         break;
      case "5":
         mobile = thumobile;
         mLocation = thulocation;
         mMunicipioUbi = thumunicipioubi;
         mParroquiaUbi = thuparroquiaubi;
         break;
      case "6":
         mobile = frimobile;
         mLocation = frilocation;
         mMunicipioUbi = frimunicipioubi;
         mParroquiaUbi = friparroquiaubi;
         break;
      case "7":
         mobile = satmobile;
         mLocation = satlocation;
         mMunicipioUbi = satmunicipioubi;
         mParroquiaUbi = satparroquiaubi;
         break;
   }
   if ((mobile)&&(0<mobile.length))
   {
      mTable = gBId('mobileTable1');
      dChilds( mTable );
      var tb = cElem("tbody");
      mTable.appendChild(tb);
      var tr = cElem("tr");
      //tr.setAttribute("id", "headingtb");
			
			
      var th = cElem("th");
      th.innerHTML = "Móvil";
      th.setAttribute("style", "width: 100px;");
      th.setAttribute("class", "labelContent2");
      tr.appendChild(th);

      th  = cElem("th");
      th.innerHTML = "Municipio";
      th.setAttribute("style", "width: 100px;");
      th.setAttribute("class", "labelContent2");
      tr.appendChild(th);

      th  = cElem("th");
      th.innerHTML = "Parroquia";
      th.setAttribute("style", "width: 150px;");
      th.setAttribute("class", "labelContent2");
      tr.appendChild(th);
			
      th  = cElem("th");
      th.innerHTML = "Ubicación";
      th.setAttribute("class", "labelContent2");
      tr.appendChild(th);
			
			
      var navegador = navigator.appName;
      if (navegador == "Microsoft Internet Explorer")
         mTable.tBodies[0].appendChild(tr);
      else
         mTable.appendChild(tr);
			
      //addRow('Móvil', 'Ubicación');
      var i,td;
      for(i=0;i<mobile.length;i++)
      {
				
         tr = cElem("tr");
         tr.setAttribute("valign", "top");
				
				
         td = cElem("td");
         //txt = cTxtN(mobile[i]);
         td.innerHTML = mobile[i];
         tr.appendChild(td);

         td = cElem("td");
         td.innerHTML = mMunicipioUbi[i];
         tr.appendChild(td);

         td = cElem("td");
         td.innerHTML = mParroquiaUbi[i];
         tr.appendChild(td);
				
         td = cElem("td");
         //txt = cTxtN(mLocation[i]);
         td.innerHTML = mLocation[i];
         tr.appendChild(td);
				
				
         if (i % 2 == 0)
         {
            tr.setAttribute("class", "labelContent3Color1");
         }
         else
         {
            tr.setAttribute("class", "labelContent3Color2");
         }
				
         if (navegador == "Microsoft Internet Explorer")
            mTable.tBodies[0].appendChild(tr);
         else
            mTable.appendChild(tr);
				
      /*
				obj = addRow(mobile[i], mLocation[i]);
				if (i % 2 == 0)
				{
					obj.setAttribute("class", "labelContent3Color1");	
				}
				else
				{
					obj.setAttribute("class", "labelContent3Color2");	
				}
				*/
      }
   }
   else
   {
      mTable = gBId('mobileTable1');
      dChilds( mTable );
      var tb = cElem("tbody");
      mTable.appendChild(tb);
      var tr = cElem("tr");
      var th = cElem("th");
      var txt = cTxtN("No tiene planificaciones el día seleccionado.");
      th.appendChild(txt);
      th.setAttribute("style", "padding-right:10px;");
      th.setAttribute("class", "labelContent2");
      tr.appendChild(th);
      mTable.appendChild(tr);
   }
}