 function onKeyPress () {
 var keycode;
 if (window.event) keycode = window.event.keyCode;
 else if (e) keycode = e.which;
 else return true;
 if (keycode == 13) {
 alert("Please Click on the Submit/Send button to send");
 return false
 }
 return true 
 }
 document.onkeypress = onKeyPress;



function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=30,width=400,titlebar=no,scrollbars=no,toolbar=no,location=no,statusbar=no,menubar=no,resizable=no,left = 362,top = 334');
myform.target=windowname;
return true;
}


function textCounter(field, countfield, maxlimit) { 
if (field.value.length > maxlimit) // if too long...trim it! 
field.value = field.value.substring(0, maxlimit); 
// otherwise, update 'characters left' counter 
else 
countfield.value = maxlimit - field.value.length; 
} 



 var message="";
 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) {(message);return false;}}}
 if (document.layers) 
 {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
 else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
 document.oncontextmenu=new Function("return false")




