//disabling rigth click starts
//alert('test');
 var oLastBtn=0;
	bIsMenu = false;
	//No RIGHT CLICK************************
	// ****************************
	if (window.Event) 
	document.captureEvents(Event.MOUSEUP); 
	function nocontextmenu(e){ 
	if (!e)
	{
		e = window.event; 
	}
		e.cancelBubble = true 
		e.returnValue = false; 
		return false; 
	} 
	function norightclick(e){ 
	if (!e)
	{
		e = window.event; 
	}
	if (e){ 
		if (e.which !=1) 
			return false; 
		} 
		else if (e.button !=1){ 
			e.cancelBubble = true 
			e.returnValue = false; 
			return false; 
		} 
	} 
	document.oncontextmenu = nocontextmenu; 
	document.onmousedown = norightclick;
	
//disabling rigth click ends


function Disable_Control_C(e) {
var isCtrl;

	if (!e)
	{
		e = window.event; 
		key = e.keyCode;
	}
	else
	{
		key = e.which;   
	}
	if (e)
	 {
	         key = e.keyCode;
			      //IE
	         if(e.ctrlKey)
	                 isCtrl = true;
	         else
	                 isCtrl = false;
	 }
	if(isCtrl)
	 {
			var keystroke = String.fromCharCode(key).toLowerCase();
			if (keystroke == 'a') 
			{
				// disable Ctrl+A
				//alert('Key combination CTRL + '+ String.fromCharCode(key) +' has been disabled.');
				return false;
			}
			if (keystroke == 'c') 
			{
				// disable Ctrl+C
				//alert('Key combination CTRL + '+ String.fromCharCode(key) +' has been disabled.');
				return false;
			}
			
	}
}
document.onkeydown=Disable_Control_C;
