
function showStatusSlider(elementID) {
//	var myFx = new Fx.Tween(elementID);
//	if ($(elementID).style.width.indexOf('100') == -1) {
//		myFx.start('width','0%','100%');
//	} else {
//		myFx.start('width','100%','0%');
//	}

}

function hideStatusSlider(elementID) {
	$(elementID).style.overflow = 'hidden';
	$(elementID).style.position = 'static';
	$(elementID).style.width = '0px';
}


function toggleRightBlock(elementID) {
	var myFx = new Fx.Tween(elementID);
	if ($(elementID).style.height.indexOf('700') == -1) {
		$('select_doctor').style.display = 'block';
		$('doctor_id2').value = '';
		myFx.start('height','0px','700px');
	} else {
		myFx.start('height','700px','0px');
	}
}

function showRightBlock(elementID, doctor_id) {
	$('select_doctor').style.display = 'none';
	$('doctor_id2').value = doctor_id;
	var myFx = new Fx.Tween(elementID);
	myFx.start('height','0px','700px');

}


function addRightBlock(elementID, doctor_id) {
	$('select_doctor').style.display = 'block';
	$('doctor_id2').value = '';
	var myFx = new Fx.Tween(elementID);
	myFx.start('height','0px','700px');

}

//function hideRightBlock(elementID) {
//	var myFx = new Fx.Tween(elementID);
//	if ($(elementID).style.height.indexOf('100') == -1) {
//		myFx.start('height','0%','100%');
//	} else {
//		myFx.start('height','100%','0%');
//	}
//}

function saveReminder(reminderID, status) {
	var req = new Request({
		url: "/reminders/saveStatus/"+reminderID+"/"+status,
		method: 'get',
		isSuccess: null
	});
	req.send();
}

function saveCollaborator(collaboratorID, status, doctor_id, case_id) {
	if (!collaboratorID) {
		collaboratorID = 0;
	}
	var req = new Request({
		url: "/collaborators/saveStatus/"+collaboratorID+"/"+status+'/'+doctor_id+'/'+case_id,
		method: 'get',
		isSuccess: null
	});
	req.send();
}

function saveDoctorStatus(doctor_id, status){
	if (!doctor_id) {
		doctor_id = 0;
	}
	var req = new Request({
		url: "/doctors/saveStatus/"+doctor_id+"/"+status,
		method: 'get',
		isSuccess: null
	});
	req.send();
}



