var lusername	=location.search.split("=")[1];
if(!lusername){
	lusername="宝贝";
}
else{
	lusername=unescape(lusername);
}

function check(obj){
	if (obj.stra.value.length>8) {
		alert('太长'); 
		return false;
	}
	if (obj.stra.value.length==0) {
		alert('还没填姓名呀'); 
		return false;
	}
	var url	="http://"+location.host+location.pathname+"?stra="+escape(obj.stra.value);
	window.clipboardData.setData("Text",url);
	alert('网址已生成，快复制发给你的朋友吧！');
	window.location.replace(url);
	return false;
}

