// Common JavaScript.


function launchwin(winurl)
{
	//This launches a new window with the course content.
	// It used to try to focus it after a delay, but that is no longer necessary.
	window.location.href(winurl);
}

function OpenCertificate(courseid, WBT)
{
	// Pop up a window with the course certificate for printing.
	// The asp file will get all the information from the session and the database.
	window.open ("CertNew.asp?CourseID=" + courseid + "&WBT=" + WBT,
		"Certificate", 
		"height=560,width=860,status=yes,location=yes,toolbar=yes,titlebar=yes,resizable=yes,scrollbars=yes,status=yes");
}

function confirmSubmit()
{
var agree=confirm("Are you sure you wish to continue?");
if (agree)
	return true ;
else
	return false ;
}

function confirmDelete()
{
var agree=confirm("Are you sure you want to delete?");
if (agree)
	return true ;
else
	return false ;
}

function LaunchCourse(winurl, features)
{
	// This launches a new window, but allows loading the window feature parameters.
	window.open(winurl, 'Course', features);
}
function CloseFocus()
{
    // Focuses Parent Window before closing the child.
    top.opener.focus();
    window.close();
}
//function GetAvatar()
//{
//    var value;
//    
//    value = "<%=Session(""LearnerID"")%>";
//        
//    return value.toString();
      
//}