/*This code will not allow  a user to paste into a field.
On the calling page the variable will have to be set. e.g. 
<cfoutput>
	var MEMEPFemail1CharCount = #len(trim(MEMEPFemail1))#;		
	var MEMEPFemail1ConfirmCharCount = #len(trim(MEMEPFemail1Confirm))#;			
</cfoutput>
*/

function checkPasteFF(CurrFieldName)
	{ 	
		newCharCount = document.getElementById(CurrFieldName).value.length;			
		oldCharCount = eval(CurrFieldName + 'CharCount');					
		eval(CurrFieldName + 'CharCount' + ' = newCharCount');
					
		if(newCharCount - oldCharCount > 1) 
		{ document.getElementById(CurrFieldName).value = ''; 
		  eval(CurrFieldName + 'CharCount' + ' = 1');
		}	
	}
	
/* function checkCtrlIns(e)
	{  e = e?e:event;		
	   var keyCode = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;
	   //if (e.ctrlKey==1 || keyCode==17 || keyCode==1 || keyCode==45)
	   if (e.ctrlKey==1 || keyCode==17)
			{	return false  }
		else
			{	return true	}
		}
*/
