
	function vbcode(thh,code)
		{
			nr=thh.nr.value;
			if(code=="B")
				{
					text=prompt("请输入粗体文本！","");
					if(text!=null)
					{
						text_code="["+code+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;
				}	
			if(code=="U")	
				{
					text=prompt("请输入带下划线的文本！","");
					if(text!=null)
					{
						text_code="["+code+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;
				}
			if(code=="I")	
				{
					text=prompt("请输入斜体文本！","");
					if(text!=null)
					{
						text_code="["+code+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;
				}
			
			if(code=="IMG")
				{
					text=prompt("请输入图片地址！","http://");
					if(text!=null)
					{
						text_code="["+code+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;

				}
			if(code=="URL")
				{
					text_url=prompt("请输入链接地址！","http://");
					if(text_url!=null)
					{
						text=prompt("请输入链接正文！","");					
						text_code="["+code+"="+text_url+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;

				}
			if(code=="COL")
				{
					text=prompt("请输入正文！","");
					if(text!=null)
					{
						text_code="["+code+"="+thh.ys.value+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;

				}
			if(code=="FON")
				{
					text=prompt("请输入正文！","");
					if(text!=null)
					{
						text_code="["+code+"="+thh.zt.value+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;

				}					
			if(code=="SIZ")
				{
					text=prompt("请输入正文！","");
					if(text!=null)
					{
						text_code="["+code+"="+thh.zt.value+"]"+text+"[/"+code+"]";
						thh.nr.value=nr+text_code;
					}	
					else
						return false;
					return false;

				}								
				
		}


	function yzh()
		{
			if(thh_ly.nr.value=="")
				{
					alert("请您详细填写内容！");
					thh_ly.nr.focus();
					return false;
				}
			if(thh_ly.title.value=="")
				{
					alert("请您详细填写标题！");
					thh_ly.title.focus();
					return false;
				}
			if(thh_ly.name.value=="")
				{
					alert("请您详细填写姓名！");
					thh_ly.name.focus();
					return false;
				}
			return true;
		}		

