
function bldurl() {
	this.nvp = new Object();
	this.hiv = new Object();
}

bldurl.prototype.unique = function() {
	this.add('uni',aaUni());
}

bldurl.prototype.file = function(f) {
	this.file = f;
}

bldurl.prototype.add = function(n,v) {
	this.nvp[n] = v;
}

bldurl.prototype.hid = function(n,v) {
	this.hiv[n] = v;
}

bldurl.prototype.url = function() {
	var ot = '';
	for (var i in this.nvp) {
		if (ot.length) ot += '&'; else ot += '?';
		ot += i+'='+encodeURIComponent(this.nvp[i]);
	}
	return this.file + ot;
}

bldurl.prototype.post = function() {
	var ot = '';
	for (var i in this.hiv) {
		ot += '<input type="hidden" name="'+i+'" value="'+encodeURIComponent(this.hiv[i])+'"/>';
	}
	return ot;
}

