﻿    
     
     
function jsvoid(){
}

if (document.getElementById || document.all){
	document.write('<div id="trailimageid">');
	document.write('</div>');
}


    function confirmationMarkDone() {
	var answer = confirm("Confirmation Required: Mark task done")
	if (answer){
	    return true
	    }
	else{
		return false
	    }
    }
    
    function confirmation() {
	var answer = confirm("Confirmation Required: Disable Customer")
	if (answer){
	    }
	else{
		alert("Operation cancelled")
		return false
	    }
    }
    
    
    function Count(text,long) 
    {

	    var maxlength = new Number(long); // Change number to your max length.
	    var ml = new Number(long); // Change number to your max length.

	    if (text.value.length > maxlength){

		    text.value = text.value.substring(0,maxlength);

          //  ml += 1;

		    alert(" Only " + ml + " characters allowed in this field");

	    }

    }
    
    //Disable right mouse click Script
    var message="Context menus are disabled on these pages!";

    ///////////////////////////////////
    function clickIE(){
    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")
    

