
function confirmdelete(sectionid){
   var answer = confirm("Are you sure you want to delete this test? ALL RESULTS WILL BE DELETED!");
   if (answer){
      var secondanswer = confirm("WARNING: TEST WILL BE DELETED ALONG WITH ALL ADMINISTRATIONS AND RESULTS!");
      if(secondanswer){
         window.location="index.html?pagename=deletemytest&sectionid=" + sectionid;
      }
   }
}

function confirminstancedelete(instanceid){
   var answer = confirm("Are you sure you want to delete this test administration? ALL RESULTS WILL BE DELETED!");
   if (answer){
      var secondanswer = confirm("WARNING: TEST ADMINISTRATION WILL BE DELETED ALONG WITH ALL RESULTS!");
      if(secondanswer){
         window.location="index.html?pagename=deleteinstance&instanceid=" + instanceid;
      }
   }
}

function openForum(source){
   alert('A New Window will open for discussion forum');   
   var dest = 'http://jforum.cete.us/forums/list.html?'+source;
   //alert(dest);
   next_window = window.open(dest, 'DISCUSSIONBOARD', 'height=790,width=1240,top=100,left=100,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,status=0,toolbar=0,titlebar=0');
   next_window.focus();     
}