function markonloan(request_id) {
	var answer = confirm("Do you want to mark 'On Loan'?")
	if (answer){
		document.getElementById('out_'+request_id).submit();
	}else{
        close;
    }
}

function markwaitlisted(request_id) {
	var answer = confirm("Do you want to mark 'Waitlisted'?")
	if (answer){
		document.getElementById('wait_'+request_id).submit();
	}else{
        close;
    }
}

function markreturned(request_id) {
	var answer = confirm("Do you want to mark 'Returned'?")
	if (answer){
		document.getElementById('return_'+request_id).submit();
	}else{
        close;
    }
}

function cancelrequest(request_id) {
	var answer = confirm("Do you want to cancel request?")
	if (answer){
		document.getElementById('cancel_'+request_id).submit();
	}else{
        close;
    }
}

function deletecopy(copy_id) {
	var answer = confirm("Do you want to DELETE copy?")
	if (answer){
		document.getElementById('deletecopy_'+copy_id).submit();
	}
}

function returncopy(copy_temp_id) {
	var answer = confirm("Do you want to RETURN copy?")
	if (answer){
		document.getElementById('returncopy_'+copy_temp_id).submit();
	}
}

function submitForm(){
    var copy = document.getElementById('copy_id');
    console.log(copy.valueOf());
    //document.getElementById('add_copy').submit();
    return false;
}
