<!--

	function newImage(arg) {
		if (document.images) {
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}
	
	function changeImages() {
		if (document.images && (preloadFlag == true)) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}

	function layerVisibility (id, vis) {
		document.getElementById(id).style.visibility=vis;
	}

	function changeLayerVisibility (id) {
		if (document.getElementById(id).style.display == "none") {
			document.getElementById(id).style.display = "block";
		} else {
			document.getElementById(id).style.display = "none";
		}
	}

	function img_popup(kep, width, height) {
		wnd = popUp("img_popup.php?kep=" + kep,"wnd", height, width);
	}

	function popUp(url, windowName, height, width) {
		var wnd = window.open(url, windowName, "height="+height+",width="+width+",status=no,menubar=no,resizable=no,directories=no,locationbar=no");
		wnd.focus();
	}

	function popUpScroll(url, windowName, height, width) {
		var wnd = window.open(url, windowName, "height="+height+",width="+width+",status=no,menubar=no,resizable=no,directories=no,locationbar=no,scrollbars=yes");
		wnd.focus();
	}

	function popUpTimeOut(url, windowName, height, width, msec) {
		var tid = window.setTimeout("popUp("+url+","+windowName+","+height+","+width+")",msec);
	}

	function imagePick(target_field, target_preview, _x, _y) {
		var pickerWindow = popUp("webutils/image_picker.php?trgt_fld="+target_field+"&trgt_prw="+target_preview+"&_x="+_x+"_y="+_y, "pickerWindow", "120", "320");
	}

	function filePick() {
		var pickerWindow = popUp("webutils/file_picker.html", "pickerWindow", "200", "100");
	}


//-->