context: function genericOnkeyPress1(fmt,element ,e){		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)	{		if(txt == ".") element.value="0.";		if(txt == "."||txt == "0."||txt == ".0") element.value="0";		var patt0= new RegExp("^[0]*[\.]{0,1}[0]*$");		var patt1= new RegExp("^[0]*[\.]{0,1}$");		var patt2= new RegExp("^[\.]{0,1}[0]*$");		if( true == patt0.test(txt.toString()) ) element.value="0";		if( true == patt1.test(txt.toString()) ) element.value="0";		if( true == patt2.test(txt.toString()) ) element.value="0";			}		if(charCode>96 && charCode<123 )	{			return false;	}	else if(charCode>90 && charCode<97)	{		return false;	}	else if(charCode>122 && charCode<127)	{		return false;	}	else if(charCode>=32 && charCode<37)	{		return false;	}	else if(charCode>40 && 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( 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 				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