/*file:		util.js - globalproject:	tank.tv		version:	xxx		date:	21.02.2003author:		our consultancy limited*///resize fixvar ID1;function resfix(){	location.reload(); clearTimeout(ID1);}function setfix(){	if(bw.ie6||(bw.ie5&&os.mac)){		ID1?clearTimeout(ID1):0;ID1=setTimeout("resfix()",500);	}}//backfunction stepback(){	history.go(-1);}//window openvar win, openwin, curID, id=0; function opwin(file,mID,winid,winwidth,winheight,scrolling){	if(openwin&&!openwin.closed){		openwin.close();	}	id++; winid = winid+id;	winheight = (winwidth>245)? winheight+70 : winheight+90;	var wx = screen.availWidth/2-winwidth/2; 	var wy = screen.availHeight/2-winheight/2-50;	win = window.open(file+'?movieID='+mID,winid,'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars='	+scrolling+',resizable=no'+',width='+winwidth+',height='+winheight+',screenX='+wx+',screenY='+wy+',left='+wx+',top='+wy);	win.opener = self;	win.focus();	openwin=win;	curID = mID;}//close child if parent refreshes etcfunction closemovie(){	openwin&&!openwin.closed? openwin.close():0;}onunload = closemovie;