function EIISGetVeryCode(eC,sID)
{
	eC.innerHTML='<img onclick="EIISGetVeryCode(this.parentNode,\''+sID+'\')" style="cursor:pointer" src="/ETSOO/ASP/VB/VeryCode.asp?ID='+sID+'&auto='+Math.random()+'" id="VeryCodeImage" alt="" />';
}
function EIISSendEmail(sEmail)
{
    
}
/* aArgs: 0 - path, 1 - target object, 2 - function */
function EIISBrowseFile(sLanguage,aArgs)
{
    if(sLanguage==null)sLanguage="";
    if(aArgs==null)aArgs=[];
    var sUrl="/ETSOO/EOFile/index.asp?BL="+sLanguage;
    _sysDom.openWindow(self,"EOFileWindow",sUrl,800,600,false,false,aArgs);
}
function EIISSetBrowser(eT,sLanguage,sPath,oFun)
{
    if(window._sysAjax&&window._sysAjax.languageText.sysBrowse)eT.value=_sysAjax.languageText.sysBrowse;
	var oI=eT.previousSibling;
	if(oI)
	{
		var sId="ETSOOBrowserPreviewFrame";
		var oFrame=document.getElementById(sId);
		if(oFrame==null)
		{
			oFrame=_sysDom.createIFrame(document,true,sId);
			with(oFrame.style)
			{
				position="absolute";
				zIndex=1;
				width="300px";
				height="225px";
			}
			var oWin=window.frames[sId];
			with(oWin.document)
			{
				open();
				write('<html><body style="margin:0px;background-color:#ffffff"><img /></body></html>');
				close();
			}
		}
		
		oI.onfocus=function()
		{
			if(_sysDom.isImageAddress(this.value))
			{
				window.frames[sId].document.getElementsByTagName("img")[0].src=this.value;
				var oFrame=document.getElementById(sId);
				var aPos=_sysDom.getPos(this);
				var iLeft=aPos[0];
				var iTop=aPos[1];
				if(iTop<225)iTop+=20;
				else iTop-=225;
				with(oFrame.style)
				{
					if(_sysDom.browser.name=="safari")
					{
						width="300px";
						height="225px";
					}
					else display="block";
					left=iLeft+"px";
					top=iTop+"px";
				}
			}
		}
		function PreviewHide()
		{
			var oFrame=document.getElementById(sId);
			if(oFrame)
			{
				with(oFrame.style)
				{
					if(_sysDom.browser.name=="safari")
					{
						width="0px";
						height="0px";
					}
					else display="none";
				}
			}
		}
		oI.onblur=PreviewHide;
		eT.onclick=function()
		{
			EIISBrowseFile(sLanguage,[this.previousSibling,sPath,oFun]);
		}
	}
}