function edit_CheckForm(formObject){
	//Check if bookid is of the desired form: 00000000000A
	var bookID = formObject.editBookID.value;
	if(!bookID.match(/^\d{11}\D$/)){
		alert("You have entered wrong Book ID!");
		return false;
	}
	
	//Check if ISBN of book contains the correct form: 0000000000
	var bookISBN = formObject.editBookISBN.value;
	if(!bookISBN.match(/^\d{9}\w$/)){
		alert("You have entered wrong ISBN! A valid ISBN consists of 10 digits without any spacing.");
		return false;
	}

	//Check if call number of a book is of correct form: 000.000 AAA
	var bookCallno = formObject.editBookCallno.value;
	if(!bookCallno.match(/^\d{3}(.|)\d{0,3}\s\D{3}$/)){
		alert("You have entered wrong call number! A valid call number consists of 6 digits, inclusive of 3 decimal places, plus a space and 3 letters. E.g. 000.000 AAA.");
		return false;
	}
	
	//check if published year of the book is of the correct form: 1900 or 2000
	var bookYear = formObject.editBookYear.value;
	if(bookYear > 2099 || bookYear < 1900 && bookYear!=''){
		alert("You have entered the wrong published year of the book! The year should contain exactly 4 digits, beginning with either 19 or 20.");
		return false;
	}
	
	//Capitalise the following data for the book: bookid, Title, call number, authors and publisher
	formObject.editBookID.value = formObject.editBookID.value.toUpperCase();
	formObject.editBookTitle.value = formObject.editBookTitle.value.toUpperCase();
	formObject.editBookCallno.value = bookCallno.toUpperCase();
	formObject.editBookISBN.value = bookISBN.toUpperCase();	
	formObject.editBookAuthor1.value = formObject.editBookAuthor1.value.toUpperCase();
	formObject.editBookAuthor2.value = formObject.editBookAuthor2.value.toUpperCase();	
	formObject.editBookPublisher1.value = formObject.editBookPublisher1.value.toUpperCase();
	return true;
}

function edit_CheckUserForm(formObject){
	//Check if userid is of the desired form: aaaaaaaa
	var userID = formObject.editUserID.value;
	if(!userID.match(/^\D{8}$/)){
		alert("You have entered wrong User ID!");
		return false;
	}

	//turn to small letters the following data for the user: userid
	formObject.editUserID.value = formObject.editUserID.value.toLowerCase();
	return true;
}

function edit_CheckSpReportForm{formObject}{
}