function lSrch() {
	if(!isEmpty(document.form1.lname.value)) {
		alert('You must enter a name before searching');
		return false;
		} else {
		document.form1.action = 'physicians.asp?typ=2';
		document.form1.submit();
		}
	}
	
function pSrch() {
	if(!validDrop(document.form1.drid)) {
		alert('You must select a physician before continuing');
		return false;
		} else {
		document.form1.action = 'physicians.asp?typ=4';
		document.form1.submit();
		}
	}	

function sSrch() {
	if(!validDrop(document.form1.specid)) {
		alert('You must select a Specialty before continuing');
		return false;
		} else {
		document.form1.action = 'physicians.asp?typ=5';
		document.form1.submit();
		}
	}


function checkDel() {
	flg = 0;
	if(!validDrop(document.form1.drid)) {
		alert('Please select a physician before you continue.');
		return false;
		} else {
			if (confirm('This will permanently delete the selected physician.  This action cannot be undone.  Are you sure you wish to proceed?')) {
				document.form1.action = 'physicianproc.asp?typ=3';
				document.form1.submit();
		}		
	}
}



function checkEd() {
	flg = 0;
	if(!validDrop(document.form1.drid)) {
		alert('Please select a physician before you continue.');
		return false;
		} else {
			document.form1.action = 'physician.asp?typ=3';
			document.form1.submit();
	}
}

function checkUp() {
	flg = 0;
	if(!validDrop(document.form1.drid)) {
		alert('Please select a physician before you continue.');
		return false;
		} else {
		if (!isEmpty(document.form1.file1.value)) {
			alert('Please choose a photo to upload.');
			return false;
			} else {			
				document.form1.action = 'photoupload.asp?typ=1';
				document.form1.submit();
		}
	}
}


