// JavaScript Document

	function f_focus(item) {
		if (item.style.borderColor == "#000000")
			lastColor = "#a2a2a2";
		else
			lastColor = item.style.borderColor;
		item.style.borderColor = "#000000";
	}
	
	function f_blur(item) {
		item.style.borderColor = lastColor;
	}
	
	function thisMovie(movieName) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[movieName]
		}
		else {
			return document[movieName]
		}
	}	
	
	function getWnd() {
		wnd = document.getElementById("flData");
		return wnd.contentWindow.document;
	}
	
	function getTkn() {
		alert("getTkn()");
	//	wnd = document.getElementById("flData");
		//wnd.contentWindow.document.getElementById("getTkn").submit();
		wnd = getWnd();
		wnd.getElementById("getTkn").submit();
	} 
	
	function getUrl(tkn) {
		wnd = getWnd();
/*		frm = wnd.getElementById("getUrl");
		frm.getElementById("getUrl_tkn").value = tkn;
		frm.submit();
*/		
		wnd.getElementById("getUrl_tkn").value = tkn;
		alert(wnd.getElementById("getUrl_tkn").value);
		wnd.getElementById("getUrl").submit();
	}
	
	function setTkn(tkn) {
		alert ("setTkn(" + tkn + ")");
		thisMovie("bio-photo").setTkn(tkn);
		
	}
	
	function setUrl(url) {
		thisMovie("bio-photo").setUrl(url);
		
	}
