/* javascript functions */

function showmenu(menu) {
if (menu.style.display == 'none') menu.style.display = 'block';
else menu.style.display = 'none';
}
if (window != top) {
if (!(document.referrer).search('encan.biz'))
top.location.href = location.href;
}

function glow(x, y){
document.images[x].src=eval(y+'.src');
}

function pop_window(which_file) {
which_url = "/photos/" + which_file;
popupWindow=window.open(which_url, "filesWindow", "resizable=yes,scrollbars=auto,width=600,height=500");
popupWindow.focus();
}

function updateSelectField(select_form, current_field) {
	var field_found = 0;
	for (x = 0; x <= select_form.length; x++) {
		if (select_form.options[x].value == current_field) {
		field_found = x;
		break;
		}
	}
	select_form.options.selectedIndex = field_found;
}