// Opens the Calendar
function showCalendar(i) {
	// declare variable
	var tbm;
	// assign field name to variable 
	// based on argument
	if(i==1) tbm='myForm.PresDate';
	if(i==2) tbm='myForm2.PresDate';
	// call pop up calendar
	// passing field name variable
	window.open('calendar.asp?tbm='+tbm,'ncal','width=225,height=200');
}

// Generic Window Opener...
function openWindowGen(url,name,width,height,top,left,resize,scroll) {
	var temp = "window.open('" + url + "', '" + name + "', '" + "width=" + width + ',height=' + height + ',top=' + top + ',left=' + left + ',resizable=' + resize + ',scrollbars=' + scroll + "')";
	eval(temp);
}

// Opens the RWJMS-Faculty Lookup
function showFacLookup(i) {
	// declare variable
	var tbm;
	// assign field name to variable 
	// based on argument
	if(i==1) tbm='myForm';
	if(i==2) tbm='myForm2';
	window.open('FacLookup.asp?tbm='+tbm,'ncal','width=500,height=375');
}

// TBA Quick Pick
function addTBA() {
	document.myForm.FacIDtx.value = 'To Be Announced';
	document.myForm.FacInst.value = 'TBA';
	document.myForm.FacTitle.value = 'TBA';
	document.myForm.PresTitle.value = 'TBA';
}

function editTBA() {
	document.myForm2.FacID.value = 'NULL'
	document.myForm2.FacIDtx.value = 'To Be Announced';
	document.myForm2.FacInst.value = 'TBA';
	document.myForm2.FacTitle.value = 'TBA';
	document.myForm2.PresTitle.value = 'TBA';
}