    var message="Sorry, this functionality is disabled\nwhile completing the survey.";

    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")

var exitMsg="You have chosen to exit the survey. Your answers have been saved and will be availiable when you return to the survey.\n Click \"OK\" to exit or \"Cancel\" to return to the survey";

function confirmSubmit(msg)
{
var agree=confirm(msg);
if (agree)
  return true ;
else
  return false ;
}
