function SubmitAccCode()  {
	var flag
	if (document.thisform.code.value=='')  {
		alert("You must enter a valid access code !") 
	}
	else {
		flag = true
		if (document.thisform.code.value.length==6)	{	//course access code
			document.thisform.action = "http://onlineceus.coursehost.com/engine/authentication/registration/ChkAccessCode.asp?schoolid=1&instpk=10584" 
		}
		else	{
			flag = false	
			alert("You must enter a valid  access code !") 
		}
		if (flag) {
			document.thisform.method = "post" 
			document.thisform.submit() 
		}
	}
}

function LoginSubmit() {
	if (document.thisform.code) document.thisform.code.value = ""
	if (document.thisform.Login.value !='' && document.thisform.Pwd.value != '') {
		document.thisform.method = "post" ;
		document.thisform.action = "http://onlineceus.coursehost.com/Groups/Registration/HRLogIn.asp?schoolid=1&instpk=10584";
		document.thisform.submit();
	}else {
		alert("Please enter your username and password.")
	}
	 
}

// Netscape reload
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// bookmark
function AddToFaves_hp(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
}
