function LinkToThisClass() {
	this.element;
	this.input;
	this.text;
	
	this.construct();
	
	return (this);
}

LinkToThisClass.prototype.construct = function () {	
	this.element = document.createElement('div');
	this.element.id = "link_to_this_pop";
	
	var close = document.createElement('span');
	close.id  = "close_link_to_this";
	close.innerHTML = '<a class="x" href="#" onclick="hide_linktothis(); return false;">&nbsp;</a>';
	this.element.appendChild(close);
	
	var pText = document.createTextNode(copyandpaste);
	this.element.appendChild(pText);

	this.input = document.createElement('input');
	this.input.id = "urlpaste";

	this.element.appendChild(this.input);
}

LinkToThisClass.prototype.setId = function (id) {
	this.input.value = pasteurl + "?id=" + id;
}