 
Consult.url ="consult.jsp?url=web/InfoConsult.do?id=";
Consult.target = "_blank";
Consult.tilteLength = 15;

function Consult(){	
	this.id = null;
	this.title ="";
	this.type =0;
	this.date = "";
	this.tilteLength =Consult.tilteLength;
}

Consult.prototype.parseXmlNode= function(xmlNode){
	this.id =xmlNode.getAttribute("id");
	this.title = xml.getNodeValue(xmlNode,"title");
	this.type = xml.getNodeValue(xmlNode,"type");
	this.date = xml.getNodeValue(xmlNode, "beginDate");
};

Consult.prototype.getUrl = function(){
	return Consult.url+this.id;
};

///
///调用此方法需引用util.js;
Consult.prototype.getLink= function(){
	return "<a herf='"+this.getUrl()+"' target='"+Consult.target+"'>"+subString(this.title,this.tilteLength)+"</a>";
};
