	function changeParent(target, source) {
		document.getElementById(target).src = source;
	}

function getStyleObject(objectId) {
	if (document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId).style;
	} else {
		if (document.all && document.all(objectId)) {
			return document.all(objectId).style;
		} else {
			if (document.layers && document.layers[objectId]) {
				return getObjNN4(document, objectId);
			} else {
				return false;
			}
		}
	}
}

function showObjById(id) {
	var styleObj = getStyleObject(id);
	styleObj.display = "block";
	styleObj.visibility = "visible";
}

function hideObjById(id) {
	var styleObj = getStyleObject(id);
	styleObj.display = "none";
	styleObj.visibility = "hidden";
}

function popup(url){
		window.open(url, "littleWindow","resizable=no, toolbar=no,location=no,directories=no, status=no, menubar=no, scrollbars=no,width=545, height=300 left=10,top=200");
	}
	
var setPhase = function (value) {
	var phases = 30;
	var offset = 42;
	var columnHeight = 275;
	if (value > 29) {
		value = 29;
	} else {
		if (value < 0) {
			value = 0;
		}
	}
	value = phases - value;
	value = (value / phases);
	var position = -(parseInt((value * columnHeight) + offset));
	if (position < -315) {
		position = "-315px";
	} else {
		position += "px";
	}
	document.getElementById("Phase_Selector").style.marginTop = position;
};	