// *** BEGIN DISABLE COPY AND PASTE AND RIGHT CLICK FOR EMAIL TEXT CODE *** //
	var isnn,isie;
	var message="";
	var fName="";
	var jsParamSuffix = "";
	//check the browser
	if(navigator.appName=='Microsoft Internet Explorer') {isie=true;}
	if(navigator.appName=='Netscape') {isnn=true;}
	function clickIE() {
		if (document.all) {
		(message);return false;
		}
	}
	function clickNS(e) {
		if(document.layers||(document.getElementById&&!document.all)) {
			if (e.which==2||e.which==3) {return false;}
		}
	}
	function onKeyDown(k) {
		
		// current pressed key
		var pressedKey = "";
		if(isie) {
			pressedKey= event.keyCode;

			// disable key press porcessing
			if ((isie) && (pressedKey == "17" || pressedKey == "18" || pressedKey == "93")) {
				clipboardData.clearData();
				event.returnValue = false;
			}
		}
		if(isnn) {
			pressedKey= k.keyCode;
			// disable key press porcessing
			if ((isnn) && (pressedKey == "17" || pressedKey == "18" || pressedKey == "93")) {
				k.returnValue=false;
				if (k.cancelable) k.preventDefault();
			}
		}
	} // onKeyDown
	function right(e) //to trap right click button 
	{
		var compartStr = '';
		if(isie) compartStr = event.srcElement.name;
		if (isnn) compartStr = e.target.name;
		//alert(compartStr);
		//alert(fName);
		//alert(jsParamSuffix);
		var compareTo = ((jsParamSuffix=="")?fName:(fName+jsParamSuffix));
		if((compartStr == compareTo) || (compartStr == compareTo)) {
			if (isnn && (e.which == 3 || e.which == 2)) {
				if (document.layers){
					document.captureEvents(Event.MOUSEDOWN);
					document.onmousedown=clickNS;
				} else {
					document.onmouseup=clickNS;
				}	
			} else if (isie && (event.button == 2 || event.button == 3)) {
				document.oncontextmenu=clickIE;
			}	
		} else {
			if (isnn) {
				document.onmouseup=new Function("return true");
			} else if (isie) {
				document.oncontextmenu=new Function("return true");
			}	
		}
	}
	function key(k)   
	{
		var compartStr = '';
		if(isie) compartStr = event.srcElement.name;
		if (isnn) compartStr = k.target.name;
		//alert(compartStr);
		//alert(fName);
		//alert(jsParamSuffix);
		var compareTo = ((jsParamSuffix=="")?fName:(fName+jsParamSuffix));
		if((compartStr == compareTo) || (compartStr == compareTo)) {
			if(isie) {
				if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
					// current pressed key
					onKeyDown(event);
				 } 
			}
			if (isnn) {
				if(k.keyCode==17 || k.keyCode==18 || k.keyCode==93) {
					document.captureEvents(Event.KEYPRESS);
					if (document.layers){
						document.captureEvents(Event.KEYDOWN);
						document.onkeydown=onKeyDown(k);
					} else {
						document.onkeypress=clickNS;
					}	
				}
			}
			document.oncontextmenu=new Function("return false");
		}			
		return true;
	}
	//if (document.layers) window.captureEvents(Event.KEYPRESS); 
	if (document.layers) window.captureEvents(Event.KEYDOWN); 
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	if (document.layers) window.captureEvents(Event.MOUSEUP);
	
	function switchCopyPaste(fieldName,paraSuffix) {
		fName = fieldName;
		//alert("fName>>"+fName);
		jsParamSuffix = paraSuffix;
		this.document.onkeydown=key;
		this.document.onmousedown=right;
		this.document.onmouseup=right;
		this.window.document.layers=right;
	}
// *** BEGIN DISABLE COPY AND PASTE AND RIGHT CLICK FOR EMAIL TEXT CODE *** //
