function UrlLink() {
	/*  attributes 
	CSCALD
	SR
	TRKCD
	CLOCN
	*/
	this.setCSCALD=function(val) {this.CSCALD=val;}
	this.getCSCALD=function() {
		return this.CSCALD;
	}
	
	this.setSR=function(val) {this.SR=val;}
	this.getSR=function() {
		return this.SR;
	}
	
	this.setTRKCD=function(val) {this.TRKCD=val;}
	this.getTRKCD=function() {
		return this.TRKCD;
	}
	
	this.setCLOCN=function(val) {this.CLOCN=val;}
	this.getCLOCN=function() {
		//return (typeof(this.CLOCN) == "undefined" || this.CLOCN == "" ? "" : this.CLOCN);
		return this.CLOCN;
	}
	
	/* This function will populate the TRCKD with SR if TRCKD does not exist 
	   It will also place a CLOCN=IAPS if there is no CLOCN
	*/
	this.validate=function(){
		/* if SR exists and track code does not, populate track code with sr */
		if(typeof(this.getTRKCD()) == "undefined"){
			if(typeof(this.getSR()) != "undefined"){
				this.setTRKCD(this.getSR());
			}
		}
		
		if(typeof(this.getCLOCN()) == "undefined"){
			this.setCLOCN("IAPS");
		}
	}
	
	this.getUrl = function(){
		return (typeof(this.getCSCALD()) == "undefined" ? "" : "CSCALD="+ this.getCSCALD() + "&" ) + 
				(typeof(this.getSR()) == "undefined" ? "" : "SR="+this.getSR() + "&" ) + 
				(typeof(this.getTRKCD()) == "undefined" ? "" : "TRKCD="+this.getTRKCD() + "&" ) + 
				(typeof(this.getCLOCN()) == "undefined" ? "" : "CLOCN="+this.getCLOCN());
	}
}