function Clock(){if(!document.all)return;var runTime=new Date();var hours=runTime.getHours();var minutes=runTime.getMinutes();
	var seconds=runTime.getSeconds();var dn="";if(minutes<=9){minutes="0"+minutes;}if(seconds<=9){seconds="0"+seconds;}
	movingtime=hours+":"+minutes+":"+seconds+""+dn;if(document.all){clock.innerHTML=movingtime;}setTimeout("Clock()", 1000);}

function showhide(){{
		vista = (document.all.dmbTB.style.visibility == 'hidden') ? 'visible'	: 'hidden';
		vista2 = (document.all.dmbTB.style.visibility == 'hidden') ? '175'	: '10';
		vista3 = (document.all.dmbTB.style.visibility == 'hidden') ? '520'	: '650';
		document.all.dmbTB.style.visibility = vista;
		document.all.dmbTBBack.style.visibility = vista;		
		document.all.minihelp.style.visibility = vista;
		document.all.content.style.pixelLeft = vista2;
		document.all.content.style.pixelWidth = vista3;
	} }
	
function SwapImage(ImageIndex, ImageName){if(!document.images)return true;eval('document.images[ImageIndex].src = "/layout/" + ImageName');}	

function SwapStatus(newtext){window.status=('Selected : '+newtext);
	}
function SwapForm(newaction){document.myform.action=newaction;}	

function parentreload(){var wndOpener=self.opener;wndOpener.focus();wndOpener.location.reload(true);self.close();}

function parentreload2(){var wndOpener=self.opener;wndOpener.focus();wndOpener.location.reload(true);}

function popWindow(u,n,o,x,y){var s=o+',width='+x+',height='+y;window.open(u,n,s);}

function checkSize(){window.resizeTo(720,600);}

var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;
function zoomBox(evt,zlink,maxw,maxh,tox,toy) {
	if (arguments.length > 2) zNew=1;
	scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
	maxW=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
	maxH=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
	toX=tox?tox:0;
	toY=(toy?toy:0)+scrollH;
	fromX=evt.pageX?evt.pageX:evt.clientX;
	fromY=(evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
	adjX=toX+evt.screenX-fromX;
	adjY=toY+evt.screenY-fromY;
	if (document.createElement && document.body.appendChild && !zBox) {
		zBox=document.createElement("div");
		zBox.style.position="absolute";
		document.body.appendChild(zBox);
	} else if (document.all && !zBox) {
		document.all[document.all.length-1].outerHTML+="<div id=zBoxDiv style=position:absolute></div>";
		zBox=document.all.zBoxDiv;
	} else if (document.layers && !zBox) {
		zBox=new Layer(maxW);
		zBox.style=zBox;
	}
	zLink=zlink;
	doZoom();
}

function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
	if (document.layers) {
		zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
		zBox.document.open();
		zBox.document.write("<table width="+maxW*(1-zPct)+" height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
		zBox.document.close();
		} else {
		zBox.style.border="2px solid #999999";
		zBox.style.left=toX+zPct*(fromX-toX);
		zBox.style.top=toY+zPct*(fromY-toY);
		zBox.style.width=maxW*(1-zPct);
		zBox.style.height=maxH*(1-zPct);
	}
	zBox.style.visibility="visible";
	if (zStep < 10) setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
	else {
		zBox.style.visibility="hidden";
		zStep=0;
		if (zLink && !zNew) location.href=zLink.href;
		else if (zLink && zNew) {
			var w=window.open(zLink.href,"","width="+maxW+",height="+maxH+",left="+adjX+",top="+adjY+",No,resizable");
			zNew=null;
		}
	}
}

// call zoom box with : onclick="zoomBox(event,this,202,165,300,150);return false"