
function goAmazonBookName(){
	var col = document.getElementById('title').value;
	window.open("http://www.amazon.com/s/ref=nb_ss_gw/?url=search-alias%3Daps&field-keywords=" + col);
}
	
function goFindBookName(){
	var col = encodeURI(document.getElementById('title').value);
	window.open("http://findbook.tw/search?q=" + col + "&keyword_type=title");
}
	
function goAmazonBookIsbn(){
	var col = document.myForm.fISBN.value;
	window.open("http://www.amazon.com/gp/product/" + col + "/");
}
	
function goFindBookIsbn(){
	var col = document.myForm.fISBN.value;
	window.open("http://findbook.tw/book/" + col + "/basic");
}

function goTop(){
	location.href = location.href + "#top";
}

function t(){
	var myDate = new Date();
	var theDate = myDate.getDate();
	var theMonth = myDate.getMonth() + 1;
	var theYear = myDate.getYear();
			
	//if(theMonth.length == 1){
	//	theMonth = "0" + theMonth;
	//	alert(theMonth);
	//}else{
	//	alert("else" + theMonth.length);
	//}
	var strDate = theYear + "-" + theMonth + "-" + theDate;
	document.getElementById("sdate").value = strDate;
	document.getElementById("edate").value = strDate;
}

//function writeToTextarea(){
//	document.getElementById('fRemark').value = document.getElementById('fRejectReason').options.value;
//}
