rem:  if( charCode ==13 || charCode ==110) 
add:  if( charCode ==13 || charCode ==110 || charCode ==190) 
context: function genericOnkeyPress(fmt,element ,e,code_0,code_9,decimal_code){	count=0;	makeRegEx2(fmt);	 e = (e) ? e : event;	var  charCode= (e.intCode) ? e.intCode : ((e.keyCode) ? e.keyCode : ((e.which) ? e.which : 0));		var txt=element.value;		var index=txt.indexOf('.');		if ( -1 != index && charCode==46 ) return false;			if( charCode ==13 || charCode ==110)	{		if(txt == ".") element.value="0.";			}		if(charCode>105 && charCode<123 )	{			return false;	}	else if(charCode>90 && charCode<96)	{		return false;	}	else if(charCode>122 && charCode<127)	{		return false;	}	else if(charCode>=32 && charCode<46)	{		return false;	}	else if(charCode>57 && charCode<65)	{		return false;	}	else if (charCode>64 && charCode<91)	{		return false;	}	else if(charCode==47)	{		return false;	}	else if(charCode == 8  || ( charCode > 34 && charCode < 41))	{		return false;	}	else	{					if( txt =="") return true;		if(pattern2 !=null&&pattern2 !="")		 if( true == pattern2.test(txt.toString()) ) return true;		if(pattern3 !=null&&pattern3 !="")		if( true == pattern3.test(txt.toString())) return true;		if(pattern4 !=null&&pattern4 !="")		if( true == pattern4.test(txt.toString())) return true;		if(pattern5 !=null&&pattern5 !="")		if( true == pattern5.test(txt.toString())) return true;		//still here 		element.value=savedText;		return false;	}}
meta: 341	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/341/a346132e86dc77234bea79081272ff2ca859a328/conversion.js/clean/mifos/src/org/mifos/doc-root/framework/js/conversion.js