// JavaScript Document
function win_popup(theURL,win_name,wide,high){
	//wherepop = screen.availwidth - wide-10;
	windowName = new String(Math.round(Math.random() * 100000));
 	msgWindow=window.open(theURL,windowName,"width="+wide+",height="+high+",toolbar=no,status=no,scrollbars=no,resizable=no,menubar=no");
	}

function win_popup_scroll(theURL,win_name,wide,high){
	//wherepop = screen.availwidth - wide-10;
	windowName = new String(Math.round(Math.random() * 100000));
	window.open(theURL,windowName,"width="+wide+",height="+high+",scrollbars=yes,resizable=yes");
	}

function deleteRecord(sType, nID, sReturnURLDelete) {
	if (window.confirm("Are you sure you want to delete this " + sType + "?") == true) {
		window.location = "admin_deleterecord.asp?Type=" + sType + "&ID=" + nID + "&ReturnURLDelete=" + sReturnURLDelete;
	}
}

function leavePage(sPlace) {
	if (window.confirm("                 Are you sure you want to leave this page? \nYou will lose any progress you have made on the current module.\n                Press the Cancel button to stay on this page.") == true) {
		window.location = sPlace
	}
}

function leavePage2(sPlace) {
	if (window.confirm("            Are you sure you want to skip the evaluation? \nIt is very important to us that we improve our courses for you!\n          Press the Cancel button to stay on this page.") == true) {
		window.location = sPlace
	}
}


function quizWarn(sPlace) {
	if (window.confirm("                       Are you SURE you are ready to take the quiz? \nIf you proceed, you WILL not be allowed to go back and review any slides.\n                        Press the Cancel button to stay on this page.") == true) {
		window.location = sPlace
	}
}
