// Create Source9 namespace 
var Source9 = {};

Source9.get = function(id)
{
	return document.getElementById(id);
};

Source9.swapImg = function(img, newSrc)
{
	if (img) 
	{
		img.src = newSrc;
	}
};

Source9.openWindow = function(url, target, width, height, otherFeatures)
{
	var s = [];
	if (width) {
		s.push('width=');
		s.push(width);
		s.push(',');
	}
	if (height) {
		s.push('height=');
		s.push(height);
		s.push(',');
	}
	s.push(otherFeatures);	// 'scrollbars=yes,resizable=yes' etc
	var features = s.join('');
	window.open(url, target, features);
};

