/* function GotoPage_post(iPage) {
	document.search_text.curPg.value = iPage;
	document.search_text.submit();
	}
*/
function dirtypop(x)
{
	var newtext = x;
  var generator=window.open(' ','name','height=400,width=500');
  
  generator.document.write('<html><head><title>Hiển thị chi tiết</title>');
  generator.document.write('<link rel="stylesheet" href="style.css">');
  generator.document.write('</head><body><p>');
  generator.document.write(newtext);
//  generator.document.write('<p><a href="javascript:self.close()">
//    Close</a> the popup.</p>');
  generator.document.write('</body></html>');
  generator.document.close();
}
function GotoPage_post(iPage) {
		
	document.search_en.curPg.value = iPage;
	document.search_en.submit();
	}
function GotoPage_view(iPage) {
		
	document.view.curPg.value = iPage;
	document.view.submit();
	}

function GotoPage(iPage) {
	document.show.curPg.value = iPage;
	document.show.submit();
	}
function Goto(iPage) {
	document.show.curPg.value = iPage;
	document.show.submit();
	}

function Check_Input() {
	if (document.input.title_qn.value=="")
	{
		alert("Bạn hãy nhập nhan đề");
		document.input.title_qn.focus();
		return false;
	}
	if (document.input.title_hn.value=="")
	{
		alert("Bạn hãy nhập nhan đề");
		document.input.title_hn.focus();
		return false;
	}
	if (document.input.nlv.value=="")
	{
		alert("Bạn hãy nhập mã số");
		document.input.nlv.focus();
		return false;
	}
	if (document.input.vnpf.value=="")
	{
		alert("Bạn hãy nhập mã số");
		document.input.vnpf.focus();
		return false;
	}
	if (document.input.width_.value=="")
	{
		alert("Bạn hãy nhập chiều rộng");
		document.input.width_.focus();
		return false;
	}
	if (document.input.height_.value=="")
	{
		alert("Bạn hãy nhập chiều cao");
		document.input.height_.focus();
		return false;
	}
	if (document.input.sheet.value=="")
	{
		alert("Bạn hãy nhập số tờ");
		document.input.sheet.focus();
		return false;
	}
	if (document.input.date_now.value=="")
	{
		alert("Bạn hãy nhập ngày");
		document.input.date_now.focus();
		return false;
	}
	return true;
	}

function Check_update() {
	if (document.update.title_qn.value=="")
	{
		alert("Bạn hãy nhập nhan đề");
		document.update.title_qn.focus();
		return false;
	}
	if (document.update.title_hn.value=="")
	{
		alert("Bạn hãy nhập nhan đề");
		document.update.title_hn.focus();
		return false;
	}
	if (document.update.nlv.value=="")
	{
		alert("Bạn hãy nhập mã số");
		document.update.nlv.focus();
		return false;
	}
	if (document.update.vnpf.value=="")
	{
		alert("Bạn hãy nhập mã số");
		document.update.vnpf.focus();
		return false;
	}
	if (document.update.width_.value=="")
	{
		alert("Bạn hãy nhập chiều rộng");
		document.update.width_.focus();
		return false;
	}
	if (document.update.height_.value=="")
	{
		alert("Bạn hãy nhập chiều cao");
		document.update.height_.focus();
		return false;
	}
	if (document.update.sheet.value=="")
	{
		alert("Bạn hãy nhập số tờ");
		document.update.sheet.focus();
		return false;
	}
	if (document.update.date_now.value=="")
	{
		alert("Bạn hãy nhập ngày");
		document.update.date_now.focus();
		return false;
	}
	return true;
	}