// JavaScript Functions

function changeSourceByID(idElement, value) {
	if (idElement != "" && value != "") {
		document.getElementById(idElement).src = value;
	}
}

function resizeFrameByObject(object) {
	object.style.height="430px";
	var newHeight = object.contentWindow.document.body.scrollHeight;
	newHeight += 50;
	object.style.height = newHeight + "px";
}

function changeSourceByObject(object, path) {
	if (object != "" && path != "") {
		object.src=path;
	}
}

function setHeight(idElement) {
	var screenHeight = screen.height;
	var object=document.getElementById(idElement);
	if ((screenHeight-460) < 330) {
		object.height = 330;
	} else {
		object.height = screenHeight-490;
	}
}

function resetValuesById(idElement) {
	var object;
	for (i = 0;i<idElement.length;i++) {
		object = document.getElementById(idElement[i]);
		object.selectedIndex = 0;
	}
}