function chkBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;this.ns4=(document.layers && !this.dom)?1:0;this.bVer=(this.ie5 || this.ie4 || this.ns4 || this.ns5);return this;}
bVer=new chkBrowser();ns4 = (document.layers)? true:false;ie4 = (document.all)? true:false;function AttB(f){if(bVer.ie4)f.style.display='block';}function AttN(f){if(bVer.ie4)f.style.display='none';}

function show(idLayer,idParent){
cLayer=bVer.dom?document.getElementById(idLayer).style:bVer.ie4?document.all[idLayer].style:bVer.ns4?idParent?document[idParent].document[idLayer]:document[idLayer]:0;
cLayer.display='block';divLinksForm=(ns4)?document.divLinks.document.divLinks:document.divLinks;}

function hide(idLayer,idParent){cLayer=bVer.dom?document.getElementById(idLayer).style:bVer.ie4?document.all[idLayer].style:bVer.ns4?idParent?document[idParent].document[idLayer]:document[idLayer]:0;
var d=document.Wiz;cLayer.display='none';}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);}
   
if (!document.layers) {
	document.write('<Sty'+'le type="text/css">');
	document.write('.plain {height:20; border:2px solid silver; text-align:center;}');
	document.write('.vbtn {height:20; width:22; font:bold 10pt arial; border:2px solid silver;}');
	document.write('.timebox {height:20; border:2px solid silver; font:9pt arial;}');
	document.write('</STY'+'LE>');
}

document.onmousedown=function(e){
	var n=!e?self.event.srcElement.name:e.target.name;
	if (document.layers) {
		with (gfPop) var l=pageX, t=pageY, r=l+clip.width, b=t+clip.height;
		if (n!="popcal"&&(e.pageX>r||e.pageX<l||e.pageY>b||e.pageY<t)) gfPop.fHideCal();
		return routeEvent(e);	// must use return here.
	} else if (n!="popcal") gfPop.fHideCal();
}
if (document.layers) document.captureEvents(Event.MOUSEDOWN);

function popSkeda(Lg,From) { 
var uid = document.main._ctl1_listaauto.options[document.main._ctl1_listaauto.selectedIndex].value;
var pURL='skeda.aspx?Id='+uid+'&amp;Lg='+Lg+'&amp;From='+From; 
                pInfo='toolbar=0,'; 
                pInfo+='location=0,'; 
                pInfo+='directories=0,'; 
                pInfo+='status=0,'; 
                pInfo+='menubar=0,'; 
                pInfo+='scrollbars=0,'; 
                pInfo+='resizable=0,'; 
                pInfo+='width=510,'; 
                pInfo+='height=300'; 
            window.open(pURL, 'Scheda', pInfo); 
        }
