﻿function Cookie(){
	this.GetValue=function(name){
	var rs=new RegExp("(^|)"+name+"=([^;]*)(;|$)","gi").exec(document.cookie),tmp;
	if(tmp=rs)
		return unescape(tmp[2]);
	return null;
	}
}

var ck=new Cookie();
var value = ck.GetValue("username");
if(value!=''&&value!='null'&&value!=null&&value!='undefined'){
document.writeln("<a href='mypost.aspx?action=post'>我的主帖</a>");
document.writeln("&nbsp;&nbsp;&nbsp;<a href='mypost.aspx?action=rpost'>我的回帖</a>");
}
