//-----------------------------------------------------------------------//
function stripNonNumeric(sVal)                                           //
//-----------------------------------------------------------------------//
//          function name: stripNonNumeric()                             //
//             created by: Dustin Brown                                  //
//             created on: 5/02/2001                                     //
//                purpose: removes all non-numeric characters from 'sVal'//
//                         leaving in decimal places.                    //
//             parameters: sVal - the string to be stripped              //
//                returns: 'sVal' minus any non-numeric characters       //
// include files required: none                                          //
//-----------------------------------------------------------------------//
{
	var ch;
	var temp="";
	var bDecimal=false;
	
	//loop through and strip out non-numeric chars
	for(var x=0;x<sVal.length;x++){
		ch=sVal.charAt(x);
		if((ch==".")&&(!bDecimal)){
			temp+=ch;
			bDecimal=true;
		}else{
			if(!isNaN(ch)){
				temp+=ch;
			}else{
				if((ch == "-")&&((x == 0) || (x == 1))){
					temp+=ch;
				}
			}
		}
	}
	
	//return the stripped down string
	return temp;
}
//End function stripChars()----------------------------------------------//