


/*changepassword*/
var message="Function Disabled!";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

//for 160 charecter


var MAX = 160;
function countTextArea()
  { 
    var text = document.form2.message.value;
    var lengthOfTextArea = text.length;
	
    if (lengthOfTextArea > MAX)
	   {
	    document.form2.message.value = text.substring(0,160);
	   }
	else
	   {
	     var remainingChars = MAX - lengthOfTextArea;
        // document.getElementById("layer_1").innerHTML = remainingChars + " Letters Remaining."; 
		 document.form2.count.value=remainingChars;   
	   }
  } 
function setFocusForTextArea()
  {
   document.form2.message.focus();
   document.form2.message.value = "";   
  }  

																																																																																																																																																																																																																																																																																								




                                                                                   
                                                                                
                                                                                
