function fillFilePath() {
	if (getFilePath() != null) {
		document.forms['mailform'].fileSrc.value = getFilePath();
	}
}

function showTitle() {
	if (document.getElementById('blob')) {
		document.getElementById('blob').setAttribute('title', getFilePath());
	} else {
		document.getElementById('blob').setAttribute('title', 'aaa');
	}
}

function getFilePath() {
	if (document.getElementById('mailform')) {
		var filePath;
		if (document.forms['mailform'].blob.value != 0) {
			filePath = document.forms['mailform'].blob.value;
		} else {
			filePath = null;
		}
	}
	return filePath;
}

var justOnce = false;
function showFeniks(visStyle) {
		var obj = document.getElementById("feniks") ? document.getElementById("feniks") : null;
		if (obj != null && obj.style) {
			if(visStyle == 'show') {
				if (!justOnce) {
					obj.style.visibility = 'visible';
					obj.style.display = 'block';
					justOnce = true;
				}
			} else {
				obj.style.visibility = 'hidden';
				obj.style.display = 'none';
			}
		}
}