﻿// JScript File

function redirect(URLStr) { location = URLStr; }

function openMeter(meterPage) {
	window.open(meterPage, "meter", "location=0,menubar=0,resizable=0,status=0,scrollbars=0,titlebar=0,toolbar=0,width=300,height=150")
}

function checkHide(obj) {
	if (typeof(Page_ClientValidate) == 'function') {
		if (Page_ClientValidate() == false) {
			return false;
		}
	}
	obj.style.visibility = 'hidden';
}

function moveCursor(source, target, maxLength) {
	if(source.value.length == maxLength) {
		obj = document.getElementById(target);
		obj.focus();
	}
}

function openExternal(source) {
	window.open(source.href);
	return false;
}