function subscribe() {
	this.content = new Array();
	
	this.init_boxes = function() {
		noget = ser.serialize(this.content);
		noget = ser.encode64(noget);
		noget = "http://danskamp.dk/rss/selected.php?sel="+noget;
		document.getElementById('rss_sel').value=noget;
		
	}
	this.check_isin = function(isin) {
		if(document.getElementById(isin).checked) {
			this.add_isin(isin);
		} else {
			this.rem_isin(isin);
		}
	}
	
	this.add_isin = function(isin) {
		this.content[this.content.length] = isin;
		this.init_boxes();
	}
	
	this.rem_isin = function(isin) {
		found = 0;
		nContent = new Array();
		for(i=0; i<this.content.length; i++){
			if(this.content[i]!=isin && found == 0) {
				nContent[i] = this.content[i];
			} else if(this.content[i] != isin && found == 1) {
				nContent[i-1] = this.content[i];
			} else {
				found=1;
			}
		}
		this.content = nContent;
		this.init_boxes();
	}
}
