

function ScrollBox(vParent,sTagName) {
	function catchError(e) {
		return false;
	}

	this.next = function () {
		try {
			oSource.f_step(1);
		} catch (e) {
			catchError(e);
		}
	}

	this.previous = function () {
		try {
			oSource.f_step(-1);
		} catch (e) {
			catchError(e);
		}
	}

	this.f_step = function(iStep) {
		try {
			var oExtract;
			var oElements = oSource.parentObject.getElementsByTagName(sTagName);
			if (oElements.length > 0) {
				var iElements = oElements.length - 1;
				if (iStep < 0 && oSource.parentObject.hasChildNodes()) {
					oExtract = oSource.parentObject.removeChild(oElements[iElements]);
					oSource.parentObject.insertBefore(oExtract, oElements[0]);
				}
				if (iStep > 0 && oSource.parentObject.hasChildNodes()) {
					oExtract = oSource.parentObject.removeChild(oElements[0]);
					oSource.parentObject.appendChild(oExtract);
				}
			}			
		} catch (e) {
			catchError(e);
		}
	}
	
	try {
		var oSource = this;
		if(typeof vParent == "object") {
			oSource.parentObject = vParent;
		} else {
			oSource.parentObject = document.getElementById(vParent);
		}
	} catch (e) {
		catchError(e);
	}
}

function RefreshApplicationGuide() {
	try {
	var valA1,valA2,valB1,valB2,del1,del2,field,baseurl,prefix;
	field = document.getElementById("AGFieldA1");
	valA1 = field[field.selectedIndex].value;
	field = document.getElementById("AGFieldA2");
	valA2 = field[field.selectedIndex].value;
	field = document.getElementById("AGFieldB1");
	valB1 = field[field.selectedIndex].value;
	field = document.getElementById("AGFieldB2");
	valB2 = field[field.selectedIndex].value;
	del1 = "_";
	del2 = "_";
		
	prefix = language + "_appguide_";
	baseurl = location.href;
	if(baseurl.indexOf("?") > -1) {
		baseurl = baseurl.left("?");
	}
	location.href = baseurl +"?open&rPROD=" + prefix + valA1 + del1 + valA2 + del2 + valB1 + del1 + valB2;
	} catch(e) {
	}
}

function ApplicationGuideShowInfo(unid) {
	
}


