// JavaScript Document
//---------- Orthodontist Section----------------------------------------//
function DOB(dob,no) 
{ 
	var temp=dob.value; 
	if(temp.length==2 && no==1) { 
		document.forms['frm_register']['txtmonth'].focus(); 
	} 
	if(temp.length==2 && no==2) { 
		document.forms['frm_register']['txtyear'].focus(); 
	} 
}

function chk_system_other(obj){ //alert("here");
	if(obj.checked==true){
		$('span_systemother').style.display="";	
		$('txtsysother').required="1";
		$('txtsysother').regex="JS_ALPHANUMERIC";
	} else {
		$('span_systemother').style.display="none";	
		$('txtsysother').value="";	
		$('txtsysother').required="0";
		$('txtsysother').regex="";
	}
}

function chk_designation(val){
	//$('hidden_designation').value="selected";
	if(val=="hod" || val=="prof" || val=="asstprof" || val =="lect"){
		$('txtother_desig').value="";
		$('txtother_desig').required="0";
		$('txtother_desig').regex="";
		$('span_designation').style.display="none";	
	} else if(val == "other"){
		$('txtother_desig').required="1";
		$('txtother_desig').regex="JS_ALPHANUMERIC";
		$('span_designation').style.display="";	
	}
}

function chk_system(){
	if($('chk_roth').checked==true || $('chk_mbt').checked==true || $('chk_edgewise').checked==true || $('chk_alexander').checked==true || $('chk_beggs').checked==true || $('chk_other').checked==true){
		return true;
	} else {
		return false;
	}
}

function chk_slot(){
	if($('chk_slot1').checked==true || $('chk_slot2').checked==true){
		return true;
	} else {
		return false;
	}
}


//-----------------------------------------------------------------------//