/*
function showpage(url) {

	http_request = false;

	if (window.XMLHttpRequest) { // 判定浏览器类型为Mozilla, Safari,...
		http_request = new XMLHttpRequest();//有些版本的 Mozilla 浏览器在伺服器送回的资料未含 XML mime-type 档头（header）时会出错。为了避免这个问题，你可以用下列方法覆写伺服器传回的档头，以免传回的不是 text/xml。
		if (http_request.overrideMimeType) {//如果服务器的响应没有XML mime-type header，
			http_request.overrideMimeType('text/xml');//修改header
		}
	} else if (window.ActiveXObject) { // 判定浏览器是 IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
		try {
			http_request = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {}
		}
	}
	
	if (!http_request) {//初始化xmlhttp组件
		alert('Giving up :( Cannot create an XMLHTTP instance');
		return false;
	}
	http_request.onreadystatechange = pageContents; //指定当readyState属性改变时的事件处理句柄
	http_request.open('POST', url, true);
	http_request.send(null);
}
*/
function pageContents(xmldoc) {
			var book = xmldoc.documentElement;
			var count = xmldoc.getElementsByTagName('count'); 
			var strcontent = ""; 
			
			var admin = book.getElementsByTagName("admin")[0].childNodes[0].nodeValue;
			var pages = book.getElementsByTagName("pages")[0].childNodes[0].nodeValue;
			var uppage = book.getElementsByTagName("uppage")[0].childNodes[0].nodeValue;
			var nextpage = book.getElementsByTagName("nextpage")[0].childNodes[0].nodeValue;
			var totalpage = book.getElementsByTagName("totalpage")[0].childNodes[0].nodeValue;
			var err = book.getElementsByTagName("err")[0].childNodes[0].nodeValue;
			
			var id,model,content,addtime,reltime,name,qq,email,page,ip,start,relcontent;
			
			for(var i=0;i<count.length;i++){
				id = echoxml(book,'id',i);
				model = echoxml(book,'model',i);
				content = echoxml(book,'content',i);
				addtime = echoxml(book,'addtime',i);
				reltime = echoxml(book,'reltime',i);
				name = echoxml(book,'name',i);
				qq = echoxml(book,'qq',i);
				email = echoxml(book,'email',i);
				upage = echoxml(book,'page',i);
				relcontent = echoxml(book,'relcontent',i);
				ip = echoxml(book,'ip',i);
				star = echoxml(book,'star',i);
				
				strcontent += "<table width=\"96%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"table-1\">";
				strcontent += "<tr><td height=\"25\" class=\"td-bg-1\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
				strcontent += "<tr><td width=\"628\" align=\"left\">&nbsp;<span class=\"txt-color-red\">留言主题："+model+"</span></td>";
				strcontent += "<td width=\"150\" class=\"txt-color-red\">时间："+addtime+"</td></tr>";
				strcontent += "</table></td></tr>";
				strcontent += "<tr><td height=\"25\" align=\"center\" class=\"td-bg-2\"><table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
				strcontent += "<tr><td height=\"6\"></td></tr></table>";
				strcontent += "<table width=\"96%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table-2\">";
				strcontent += "<tr><td height=\"25\" align=\"left\" class=\"td-bg-3\">&nbsp;<span class=\"txt-color-red-2\">作者昵称："+name+"</span></td></tr>";
				strcontent += "<tr><td height=\"25\" align=\"left\">&nbsp;&nbsp;&nbsp; ";
				if(star=='0' || admin=='login'){
					strcontent += content;	
				}else{
					strcontent += "给版主的悄悄话";
				}
				strcontent +="</td></tr></table>";
				strcontent += "<table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
				strcontent += "<tr><td height=\"6\"></td></tr></table>";
				if(relcontent!=''){
					strcontent += "<table width=\"96%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table-2\">";
					strcontent += "<tr><td height=\"25\" class=\"td-bg-3\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
					strcontent += "<td width=\"83%\" align=\"left\">&nbsp;<span class=\"txt-color-red-2\">版主回复：</span></td>";
					strcontent += "<td width=\"17%\" class=\"txt-color-red-2\">时间："+reltime+"</td></tr></table></td></tr>";
					strcontent += "<tr><td height=\"25\" align=\"left\">&nbsp;&nbsp;&nbsp; "+relcontent+" </td></tr></table>";
					strcontent += "<table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
					strcontent += "<tr><td height=\"6\"></td></tr></table>";
				}
				strcontent += "</td></tr>";
				strcontent += "<tr><td height=\"25\" align=\"center\" class=\"td-bg-3\"><table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
				strcontent += "<td width=\"50%\" align=\"left\">";
				if(admin=='login'){
					strcontent += "<a onClick=\"rels("+id+","+pages+",'show')\" style=\"CURSOR: hand\">回复</a>&nbsp;<a onClick=\"del("+id+","+pages+")\" style=\"CURSOR: hand\">删除</a>&nbsp;<a onClick=\"out("+pages+")\" style=\"CURSOR: hand\">退出管理</a>";
				}
				strcontent += "</td><td align=\"right\" width=\"50%\" class=\"txt-color-red\"><a href=\""+upage+"\" target=\"_blank\"><span class=\"txt-color-red\">Homepage</span></a>&nbsp; <a href=\"mailto:"+email+"\"><span class=\"txt-color-red\">Mail</span></a>&nbsp; <a title="+qq+" style=\"CURSOR: hand\">QQ</a>&nbsp; <a title=\""+ip+"\" style=\"CURSOR: hand\">IP</a> </td></tr></table></td></tr></table><br />";
	
			}
			document.getElementById("bookcontent").innerHTML = strcontent;
			document.getElementById("pages").value = pages;
			document.getElementById("uppage").value = uppage;
			document.getElementById("nextpage").value = nextpage;
			document.getElementById("totalpage").value = totalpage;
			document.getElementById("pagenum").innerHTML = pages+"/"+totalpage+" 页";
			if(err!='yes'){
				errs(err);
			}
}

//读出XML
function echoxml(book,name,i){
	if(book.getElementsByTagName(name)[i].childNodes[0]){
		name = book.getElementsByTagName(name)[i].childNodes[0].nodeValue;
	}else{
		name = '';	
	}
	return name;
}
//翻页
function actionpage(type){
	    if(type=='firstpage'){
			var page = 1;
		}else if(type=='uppage'){
			var page = document.all.uppage.value;	
		}else if(type=='nextpage'){
			var page = document.all.nextpage.value;	
		}else if(type=='totalpage'){
			var page = document.all.totalpage.value;	
		}else {
			var page = type	
		}

		//showpage('action_show.php?page='+page);
		
		
		//alert(page)
		var Ajax = new Js_Ajax();
		//alert('gbook/action_show.asp?page='+page)
	    Ajax.PostUrl = 'inc/action_show.asp?page='+page;
	    Ajax.Treat = pageContents;   //数据处理函数名 接收responseText\responseXML
		Ajax.DataType = 0;
	    Ajax.Creat();  //如果异步取数据成功,将返回的数据交由CityTakeBack(此函数另外写)函数处理

}

//拖动对象
	var   currentMoveObj   =   null;         //当前拖动对象   
  	var   relLeft;         //鼠标按下位置相对对象位置   
  	var   relTop;   
  	function   f_mdown(obj){   
    	currentMoveObj   =   obj;                 //当对象被按下时，记录该对象   
        currentMoveObj.style.position   =   "absolute";   
        relLeft   =   event.x   -   currentMoveObj.style.pixelLeft;   
        relTop   =   event.y   -   currentMoveObj.style.pixelTop; 
		//alert(currentMoveObj)

  	} 
	
  	//window.document.onmouseup   =   function(){  
	function f_mouseup(){
	    //alert(currentMoveObj)
  		currentMoveObj   =   null;         //当鼠标释放时同时释放拖动对象   
  	}
	
  	function f_move(obj){   
      	if(currentMoveObj   !=   null){ 
        	currentMoveObj.style.pixelLeft=event.x-relLeft;   
        	currentMoveObj.style.pixelTop=event.y-relTop;   
      	}   
  	}
	
//错误函数
function errs(err){
	if(err=='login'){
		alert('对不起，用户名密码错误！');	
	}
}
//显示隐藏
	function displays(name,type){
		document.getElementById(name).style.position   =   "absolute";
		//document.getElementById(name).style.pixelLeft = (window.screen.width - document.getElementById(name).width)/2;
		//alert(document.getElementById(name).height)
		document.getElementById(name).style.pixelTop = 300;//(window.screen.height - document.getElementById(name).height)/2;
		document.getElementById(name).style.display=type;
	} 
	function login(){
		var user = document.all.user.value;
		var pass = document.all.pass.value;
		var pages = document.all.pages.value;
		actionpage('1&action=login&passWord='+pass+'&userName='+user)
		//showpage('action_show.php?action=login&page='+pages+'&user='+user+'&pass='+pass);
		displays('login','none');
	}
//添加留言
	function add(){
		var name = document.all.name.value;
		var email = document.all.email.value;
		var qq = document.all.qq.value;
		var upage = document.all.upage.value;
		var title = document.all.title.value;
		var content = document.all.content.value;
		var star = document.all.star.value;
		if(content.length>400){
			alert('内容不能超过200个汉字。');
			document.all.content.focus();
			return false;
		}
		actionpage('1&action=add&name='+name+'&email='+email+'&qq='+qq+'&upage='+upage+'&title='+title+'&content='+content+'&star='+star);
		document.getElementById("name").value = '';
		document.getElementById("email").value = '';
		document.getElementById("qq").value = '';
		document.getElementById("upage").value = '';
		document.getElementById("title").value = '';
		document.getElementById("content").value = '';
		document.getElementById("start").checked = false;
		displays('addbook','none');
	}
//回复  处理回复的隐藏显示,及发送表单
	function rels(id,pages,type){
		if(type=='show'){
			displays('rel','');
			document.getElementById("relid").value = id;
			document.getElementById("relpage").value = pages;
		}else if(type=='submit'){
			var relid = document.getElementById("relid").value;
			var relpage = document.getElementById("relpage").value;
			var relcontent = document.getElementById("relcontent").value;
			//alert(relpage+'&action=rel&relid='+relid+'&relcontent='+relcontent)
			//actionpage('1&action=add&name='+name+'&email='+email+'&qq='+qq+'&upage='+upage+'&title='+title+'&content='+content+'&start='+start);
			actionpage(relpage+'&action=rel&relid='+relid+'&relcontent='+relcontent);
			displays('rel','none');
		}
	}
//删除  处理回复的隐藏显示,及发送表单
	function del(id,pages){
			actionpage(pages+'&action=del&relid='+id);
	}
	function out(pages){
			actionpage(pages+'&action=out');
	}
	
	
//留言板样式
var style = "";
style = "<STYLE type=text/css>"
style = style + ".td-bg-1 {font-size: 12px;background-color: #FFFFFF;}"
style = style + ".td-bg-2 {font-size: 12px;background-color: #FFFFFF;}"
style = style + ".txt-color-red {font-size: 12px;color: #7D0000;font-weight: bold;}"
style = style + ".td-bg-3 {font-size: 12px;background-color: #B3E1F1;}"
style = style + ".table-2 {font-size: 12px;border: 1px dashed #CCCCCC;}"
style = style + ".txt-color-red-2 {font-size: 12px;color: #604040;}"
style = style + "td {font-size: 12px;}"
style = style + ".table-1 {font-size: 12px;border: 1px solid #CCCCCC;}"
style = style + ".color-red {font-size: 12px;color: #FF0000;}"
style = style + "a {font-size: 12px;text-decoration: none;}"
style = style + "#login {position:absolute;left:388px;top:97px;width:58px;height:64px;z-index:1;}"
style = style + "#addbook {position:absolute;left:388px;top:97px;width:58px;height:64px;z-index:1;}"
style = style + "#rel {position:absolute;left:388px;top:97px;width:58px;height:64px;z-index:1;}"
style = style + "#loading {position:absolute;left:453px;top:177px;width:70px;height:9px;z-index:1;background-color: #FFFFFF;}"
style = style + ".STYLE2 {font-size: 18px;font-weight: bold;}"
style = style + "</"+"style>"
document.write(style)


//回复留言
var reply = ""
reply = reply + "<div id=\"rel\" style=\"display:none\">"
reply = reply + "<table width=\"300\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#FFFFFF\" class=\"table-1\" onMouseDown=\"f_mdown(this)\" onMouseMove=\"f_move(this)\" onMouseUp=\"f_mouseup()\">"
reply = reply + "<form method=\"post\" action=\"\"><tr>"
reply = reply + "<td height=\"25\" colspan=\"2\" class=\"td-bg-3\" style=\"CURSOR: move\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
reply = reply + "<tr>"
reply = reply + "<td width=\"90%\">版主回复</td>"
reply = reply + "<td width=\"10%\"><a onClick=\"displays('rel','none')\" style=\"CURSOR: hand\">关闭</a></td>"
reply = reply + "</tr>"
reply = reply + "</table></td>"
reply = reply + "</tr>"
reply = reply + "<tr>"
reply = reply + "<td colspan=\"2\" align=\"center\" class=\"td-bg-2\"><label>"
reply = reply + "<textarea name=\"relcontent\" cols=\"38\" rows=\"6\" id=\"relcontent\"></textarea>"
reply = reply + "</label></td>"
reply = reply + "</tr>"
reply = reply + "<tr>"
reply = reply + "<td height=\"25\" colspan=\"2\" align=\"center\" class=\"td-bg-2\"><label>"
reply = reply + "<input type=\"button\" name=\"Submit\" value=\"提 交\" onClick=\"rels('','','submit')\">"
reply = reply + "<input type=\"reset\" name=\"Submit2\" value=\"重 置\">"
reply = reply + "<input name=\"relid\" type=\"hidden\" id=\"relid\">"
reply = reply + "<input name=\"relpage\" type=\"hidden\" id=\"relpage\">"
reply = reply + "</label></td>"
reply = reply + "</tr></form>"
reply = reply + "</table>"
reply = reply + "</div>"
document.write(reply)
//增加留言
var addRecord = "";
addRecord = addRecord + "<div id=\"addbook\" style=\"display:none\">";
addRecord = addRecord + "<table width=\"400\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#FFFFFF\" class=\"table-1\" onMouseDown=\"f_mdown(this)\" onMouseMove=\"f_move(this)\" onMouseUp=\"f_mouseup()\">";
addRecord = addRecord + "<form name=\"addbook\" id=\"theForm\" method=\"post\" action=\"\">";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td height=\"25\" colspan=\"2\" class=\"td-bg-3\" style=\"CURSOR: move\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td width=\"90%\">添加留言</td>";
addRecord = addRecord + "<td width=\"10%\"><a onClick=\"displays('addbook','none')\" style=\"CURSOR: hand\">关闭</a></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "</table></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td width=\"85\" height=\"25\" align=\"right\" class=\"td-bg-2\">昵 称：</td>";
addRecord = addRecord + "<td width=\"302\" align=\"left\" style=\"padding-left:10px\" class=\"td-bg-2\"><input name=\"name\" show=\"昵称\" type=\"text\" id=\"name\" size=\"20\" maxlength=\"20\" onFocus=\"this.select()\">";
addRecord = addRecord + "<span class=\"color-red\"> *</span></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td height=\"25\" align=\"right\" class=\"td-bg-2\">邮 箱：</td>";
addRecord = addRecord + "<td class=\"td-bg-2\" align=\"left\" style=\"padding-left:10px\"><input name=\"email\" type=\"text\" show=\"邮箱\" id=\"email\" size=\"20\" maxlength=\"60\" onFocus=\"this.select()\"></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td height=\"25\" align=\"right\" class=\"td-bg-2\">Q Q：</td>";
addRecord = addRecord + "<td height=\"25\" class=\"td-bg-2\" align=\"left\" style=\"padding-left:10px\"><input name=\"qq\" type=\"text\" show=\"QQ号码\" id=\"qq\" size=\"20\" maxlength=\"10\" onFocus=\"this.select()\"></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td height=\"25\" align=\"right\" class=\"td-bg-2\">主 页：</td>";
addRecord = addRecord + "<td height=\"-2\" class=\"td-bg-2\" align=\"left\" style=\"padding-left:10px\"><input name=\"upage\" type=\"text\" show=\"主页\" id=\"upage\" size=\"20\" maxlength=\"60\" onFocus=\"this.select()\"></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td height=\"25\" align=\"right\" class=\"td-bg-2\">标 题：</td>";
addRecord = addRecord + "<td height=\"0\" class=\"td-bg-2\" align=\"left\" style=\"padding-left:10px\"><input name=\"title\" type=\"text\" id=\"title\" show=\"标题\" size=\"20\" maxlength=\"60\" onFocus=\"this.select()\">";
addRecord = addRecord + "<span class=\"color-red\">*</span>";
addRecord = addRecord + "<input name=\"star\" type=\"checkbox\" id=\"start\" value=\"1\">";
addRecord = addRecord + "给版主的悄悄话";
addRecord = addRecord + "</td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td height=\"25\" align=\"right\" class=\"td-bg-2\">内 容：</td>";
addRecord = addRecord + "<td height=\"25\" class=\"td-bg-2\" align=\"left\" style=\"padding-left:10px\"><textarea name=\"content\" cols=\"30\" show=\"内容\" rows=\"4\" id=\"content\"></textarea>";
addRecord = addRecord + "<span class=\"color-red\">*</span></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "<tr>";
addRecord = addRecord + "<td height=\"25\" colspan=\"2\" align=\"center\" class=\"td-bg-2\"><input type=\"button\" name=\"button\" value=\"提 交\" onClick=\"add()\">";
addRecord = addRecord + "<input type=\"reset\" name=\"Submit22\" value=\"重 置\"></td>";
addRecord = addRecord + "</tr>";
addRecord = addRecord + "</form>";
addRecord = addRecord + "</table>";
addRecord = addRecord + "</div>";
document.write(addRecord);
//登陆
var loginF = ""
loginF = loginF + "<div id=\"login\" style=\"display:none\" width=\"200\" height=\"100\">"
loginF = loginF + "<table width=\"200\" height=\"100\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#FFFFFF\" class=\"table-1\" onMouseDown=\"f_mdown(this)\" onMouseMove=\"f_move(this)\" onMouseUp=\"f_mouseup()\">"
loginF = loginF + "<form method=\"post\" action=\"\"><tr>"
loginF = loginF + "<td height=\"25\" colspan=\"2\" class=\"td-bg-3\" style=\"CURSOR: move\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
loginF = loginF + "<tr>"
loginF = loginF + "<td width=\"84%\">用户登陆</td>"
loginF = loginF + "<td width=\"16%\"><a onClick=\"displays('login','none')\" style=\"CURSOR: hand\">关闭</a></td>"
loginF = loginF + "</tr>"
loginF = loginF + "</table></td>"
loginF = loginF + "</tr>"
loginF = loginF + "<tr>"
loginF = loginF + "<td width=\"61\" height=\"25\" align=\"right\" class=\"td-bg-2\">用户名：</td>"
loginF = loginF + "<td width=\"134\" class=\"td-bg-2\"><input name=\"user\" type=\"text\" id=\"user\" size=\"12\" onFocus=\"this.select()\"></td>"
loginF = loginF + "</tr>"
loginF = loginF + "<tr>"
loginF = loginF + "<td height=\"25\" align=\"right\" class=\"td-bg-2\">密&nbsp; 码：</td>"
loginF = loginF + "<td class=\"td-bg-2\"><input name=\"pass\" type=\"text\" id=\"pass\" size=\"12\" onFocus=\"this.select()\"></td>"
loginF = loginF + "</tr>"
loginF = loginF + "<tr>"
loginF = loginF + "<td height=\"25\" colspan=\"2\" align=\"center\" class=\"td-bg-2\"><label>"
loginF = loginF + "<input type=\"button\" name=\"Submit\" value=\"提 交\" onClick=\"login()\">"
loginF = loginF + "<input type=\"reset\" name=\"Submit2\" value=\"重 置\">"
loginF = loginF + "</label></td>"
loginF = loginF + "</tr></form>"
loginF = loginF + "</table>"
loginF = loginF + "</div>"
document.write(loginF)
//调用接口
var guestBook = "";
guestBook = guestBook + "<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
guestBook = guestBook + "<tr>";
guestBook = guestBook + "<td height=\"342\" align=\"center\" valign=\"top\">";
guestBook = guestBook + "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">";
guestBook = guestBook + "<input type=\"hidden\" id=\"nextpage\" name=\"nextpage\">";
guestBook = guestBook + "<input type=\"hidden\" id=\"pages\" name=\"pages\">";
guestBook = guestBook + "<input type=\"hidden\" id=\"uppage\" name=\"uppage\">";
guestBook = guestBook + "<input type=\"hidden\" id=\"totalpage\" name=\"totalpage\">";
guestBook = guestBook + "<tr>";
guestBook = guestBook + "<td height=\"28\" align=\"right\" class=\"gz\" style=\"padding-right:20px\"><span onmouseover=\"this.style.cursor='hand'\" onclick=\"displays('addbook','')\">加入留言</span> <span onmouseover=\"this.style.cursor='hand'\" onclick=\"displays('login','')\">管理登陆</span></td>";
guestBook = guestBook + "</tr>";
guestBook = guestBook + "</table>";
guestBook = guestBook + "<div id=\"bookcontent\" class=\"gz\"></div>";
guestBook = guestBook + "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">";
guestBook = guestBook + "<tr>";
guestBook = guestBook + "<td height=\"28\" align=\"right\" class=\"gz\">";
guestBook = guestBook + "<table border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">";
guestBook = guestBook + "<tr>";
guestBook = guestBook + "<td width=\"180\" align=\"center\"><a onClick=\"actionpage('firstpage')\" style=\"CURSOR: hand\">首页</a> <a onClick=\"actionpage('uppage')\" style=\"CURSOR: hand\">上一页</a> <a onClick=\"actionpage('nextpage')\" style=\"CURSOR: hand\">下一页</a> <a onClick=\"actionpage('totalpage')\" style=\"CURSOR: hand\">尾页</a> </td>";
guestBook = guestBook + "<td width=\"60\" align=\"center\" id=\"pagenum\"></td>";
guestBook = guestBook + "<td width=\"19\">&nbsp;</td>";
guestBook = guestBook + "</tr>";
guestBook = guestBook + "</table>";
guestBook = guestBook + "</td>";
guestBook = guestBook + "</tr>";
guestBook = guestBook + "</table>";
guestBook = guestBook + "</td>";
guestBook = guestBook + "</tr>";
guestBook = guestBook + "</table>";
///目的将页面代码简化便于调用