// use for Login Form
function loginForm()
{
 if(document.loginform.userid.value == "")
 {
 alert("Please enter Username");
 return false;
 }
 if(document.loginform.pwd.value == "")
 {
 alert("Please enter Password");
 return false;
 }
 return true;
}

// use for change password form
function checkChangePasswordForm()
{
  if(document.form1.old_pwd.value == "")
  {
   alert("Please enter old password");
   return false;
  }
  if(document.form1.new_pwd.value == "")
  {
  alert("Please enter new password");
  return false;
  }
  if(document.form1.confirm_pwd.value == "")
  {
  alert("Please enter confirm password");
  return false;
  }
  if(document.form1.new_pwd.value != document.form1.confirm_pwd.value)
  {
  alert("New Password does not match with Confirm Password");
  return false;
  }
  return true;
}

function AICTForm()
{
	
	alert("TESTING");
 /**var test_num= document.form1.elements['Conf_Column_2Options'].value; 
 alert(test_num);
 var tmpStr = "";
  for (i=5-1; i > -1; i--) {  
if(document.form1.Conf_Column_2[i].checked) {
  myOption = i; 
 i = -1; 
 tmpStr = document.form1.Conf_Column_2[myOption].value; 
 }
 } 
 

  //check for physician
 if( tmpStr.indexOf("Physician<b></b>" ) != "-1" ||  tmpStr.indexOf("Others" ) != "-1") {
	 var test = document.form1.elements["Conf_Column_17[]"];
     //Full Registration
	 if(test[0].checked)
	 {
		 test[1].disabled = true;
		 test[2].disabled = true;
		 test[3].disabled = true;
		 test[4].disabled = true;
	 }
	 if(test[1].checked)
	 {
		 test[0].disabled = true;
		 test[2].disabled = true;
		 test[3].disabled = true;
		 test[4].disabled = true;
	 }
	 if(test[2].checked)
	 {
		 test[0].disabled = true;
		 test[1].disabled = true;
		 test[3].disabled = false;
		 test[4].disabled = false;
	 }
	 if(test[3].checked)
	 {
		 test[0].disabled = true;
		 test[1].disabled = true;
		 test[2].disabled = false;
		 test[4].disabled = false;
	 }
	 if(test[4].checked)
	 {
		 test[0].disabled = true;
		 test[1].disabled = true;
		 test[2].disabled = false;
		 test[3].disabled = false;
	 }
	 
 }
 
 //check for physician
 else if( tmpStr.indexOf("Physician-in-training *" ) != "-1" ||  tmpStr.indexOf("Nurse" ) != "-1" ||  tmpStr.indexOf("Allied Health Professional [e.g. Technologist, Technician, Paramedic, Therapist]" ) != "-1") {
	 var test = document.form1.elements["Conf_Column_18[]"];
     //Full Registration
	 if(test[0].checked)
	 {
		 test[1].disabled = true;
		 test[2].disabled = true;
		 test[3].disabled = true;
		 test[4].disabled = true;
	 }
	 if(test[1].checked)
	 {
		 test[0].disabled = true;
		 test[2].disabled = true;
		 test[3].disabled = true;
		 test[4].disabled = true;
	 }
	 if(test[2].checked)
	 {
		 test[0].disabled = true;
		 test[1].disabled = true;
		 test[3].disabled = false;
		 test[4].disabled = false;
	 }
	 if(test[3].checked)
	 {
		 test[0].disabled = true;
		 test[1].disabled = true;
		 test[2].disabled = false;
		 test[4].disabled = false;
	 }
	 if(test[4].checked)
	 {
		 test[0].disabled = true;
		 test[1].disabled = true;
		 test[2].disabled = false;
		 test[3].disabled = false;
	 }
	 
 } **/
}