  function SoloNumDec(oControl)
   { 

   if (oControl.value.length==1)
   {
 	  if ((oControl.value.substr(0,1)< '0' || oControl.value.substr(0,1)>'9'))
		  {oControl.value='';}
   }
   else
   {

   var x = 0;
   while (x < oControl.value.length)
   
//	   for(x=0;x<oControl.value.length+1; x++)
	   	{
	 	 	 if  ((oControl.value.substr(x,1)< '0' || oControl.value.substr(x,1)>'9'))
				{//no es numero alert(oControl.value.substr(x,1));
				if ((oControl.value.substr(x,1) == ',') && (x == oControl.value.indexOf(',', 0)))
					{//primera coma
					}				
				else
					{//no esta la coma o es otra coma
					oControl.value=oControl.value.substr(0,x) + oControl.value.substr(x+1,oControl.value.length);
					x--;
					} // if coma
				}// if numero
			x ++;
	   		}//for
	} //else
   }//funcion     


