function nothing(){}	

function switchBleachair(id,img_title,img_id,width,height,url,className){
	if(width == null) width = 90;
	if(height != null) width += "x"+height
	var div = _.$(id);
	
	var scale = '';
	if(className != null){
		if(className.match(/fill/gi)){
			scale = "?scale=fill";
		}else if(className.match(/padfit/gi)){
			scale = "?scale=padfit";
		}
	}
	
	var html = '<img alt="'+img_title+'" src="/srv/img/'+width+'/'+img_id+'.png'+scale+'" />';
	
	if(url != null){
		html = '<a href="'+url+'">'+html+'</a>';
	}
	
	div.innerHTML = html;
}

var CMS = function(){
		return {currInput : null};
};

var popup = null;

function getValue(obj,winUrl){
	popup = window.open(winUrl+"?select",'selWin','width=700,height=600,resizable=1,scrollbars=1,toolbar=0,status=1');
	popup.parent.currInput = obj;
	
}

function setValue(value){
	console.log(CMS);
	CMS.currInput.value = value;
	CMS.currInput = null;
}

function selectValue(value){
	parent.currInput.value = value;
	window.close();
}
