	//- Console_AddRemove -//
	function Console_AddRemove(oFromSet, oToSet, bIsAll) {
		//+ unselect
		for (var hOption = 0; hOption < oToSet.length; hOption++) {
			oToSet.options[hOption].selected = false;
		}
		//+ move
		for (hOption = oFromSet.length; hOption != 0; hOption--) {
			if ((bIsAll == true) || (oFromSet.options[hOption - 1].selected == true)) {
				oToSet.options[oToSet.length] = new Option(oFromSet.options[hOption - 1].text, oFromSet.options[hOption - 1].value, false, true);
				oFromSet.options[hOption - 1] = null;
			}
		}
	}
	//- Console_Pack -//
	function Console_Pack(oSet, oField) {
		var cPack = '';
		for (var hOption = 0; hOption < oSet.length; hOption++) {
			cPack += ',' + oSet.options[hOption].value;
		}
		oField.value = cPack.substring(1);
	}

	//- DecodeZip -//
	function DecodeZip(xZip) {
		var cZip = xZip.replace(/\?/g, '');
		return cZip;
	}

	//- DecodeFon -//
	function DecodeFon(xFon) {
		var cFon = '';
		if (xFon.length >= 10) {
			cFon = xFon.substr(0, 3) + '-' + xFon.substr(3, 3) + '-' + xFon.substr(6, 4)
			if ((xFon.length == 15) && (xFon.substr(10, 5) != '?????')) {
				cFon += ' x' + xFon.substr(10, 5).replace(/\?/g, '');
			}
		}	
		return cFon;
	}

	//- ToggleImage -//
	function SetImage(oImage, cImage) {
		oImage.src = cImage;
	}
	
	//- IfEnterAction -//
	function IfEnterAction(oEvent, oForm, cAction, cSelId){
		if ((EventKeyCode(oEvent) == 13) || (EventKeyCode(oEvent) == 3)) {
			oForm.Action.value = cAction;
			oForm.SelId.value = cSelId;
			oForm.submit();
			return false;
		}
		return true;
	}

	//- IfEnterScript -//
	function IfEnterScript(oEvent, cScript) {
		if ((EventKeyCode(oEvent) == 13) || (EventKeyCode(oEvent) == 3)) {
			eval(cScript);
			return false;
		}
		return true;
	}

	//- EventKeyCode -//
	function EventKeyCode(oEvent) {
		return ((oEvent != null) && (oEvent.which != null) ? oEvent.which : event.keyCode);
	}