
	var charset;
	
	var queryUrl = "http://name.knet.cn/link_rel.jsp";
	 
	
	if(linktype && linktype != null)
	{
		queryUrl = queryUrl + "?type=" + linktype;	
	}
	else
	{
		queryUrl = queryUrl + "?type=2";		
	}
	
	
	
	if(bgclr && bgclr != null)
	{
		queryUrl = queryUrl + "&bgclr=" + bgclr;	
	}
	
	
	if(txtsiz && txtsiz != null)
	{
		queryUrl = queryUrl + "&txtsiz=" + txtsiz;	
	}
	
	
	if(txtclr && txtclr != null)
	{
		queryUrl = queryUrl + "&txtclr=" + txtclr;	
	}
	
	
	if(edwidth && edwidth != null)
	{
		queryUrl = queryUrl + "&edwidth=" + edwidth;	
	}
	
	
	if(height  && height != null)
	{
		queryUrl = queryUrl + "&height=" + height;	
	}
	
	
	if(hot && hot != null)
	{
		queryUrl = queryUrl + "&hot=" + hot;	
	}
	
	
	if(regid && regid != null)
	{
		queryUrl = queryUrl + "&regid=" + regid;	
	}
	
	
	if(txtlen && txtlen != null)
	{
		queryUrl = queryUrl + "&txtlen=" + txtlen;	
	}
	
	
	if(edtxt && edtxt != null)
	{
		queryUrl = queryUrl + "&edtxt=" + edtxt;	
	}
	
	
	if(pid && pid != null)
	{
		queryUrl = queryUrl + "&pid=" + pid;	
	}
	
	
	if(charset && charset != null)
	{
		queryUrl = queryUrl + "&charset=" + charset;	
	}
	
	if(fixwd && fixwd != null)
	{
		queryUrl = queryUrl + "&fixwd=" + fixwd;	
	}
	
	var height = "50";
	
	if(ownerheight && ownerheight != null)
	{
		height = ownerheight;
	}
	
	var width = "600";
	
	if(ownerwidth && ownerwidth != null)
	{
		width = ownerwidth;
	}
	
	var iframeSrc = "<iframe height=\"" + height + "\" width=\"" + width + "\" scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" hspace=\"0\" vspace=\"0\" marginheight=\"0\" marginwidth=\"0\" src=\"" + queryUrl + "\"> </iframe>";
	
	document.write(iframeSrc);
	

