function OTExportImportScroll( obj ) {
	if (obj.paused) return;
	var s = "";
	s = (obj.scrollpos) ? '-'+obj.scrollpos+'px' : '0px';
	obj.objmain.style.top = s;
	obj.scrollpos+=2;
	obj.scrollpos = obj.scrollpos % obj.height;
}

function OTExportImportStartScroll( obj ) {
	obj.paused=0;
}

function OTExportImportStopScroll( obj ) {
	obj.paused=1;
}

function OTExportImportInitScroll( obj ) {
	if (!obj.objmain) {
		var o = document.getElementById( obj.id );
		if (!o) return;
		obj.objmain = o;
	}
	if (!obj.objcnt) {
		var cnt = document.getElementById( obj.cntid );
		if (!cnt) return;
		obj.objcnt = cnt;
	}

	obj.height=(o.scrollHeight) ? o.scrollHeight : o.clientHeight;
	obj.objcnt.style.position='relative';
	obj.objcnt.style.overflow='hidden';
	obj.objcnt.style.height='70px';	// obj.height+"px";
	obj.objmain.innerHTML=o.innerHTML+o.innerHTML;
	obj.objmain.style.position='absolute';
	setInterval( 'OTExportImportScroll('+obj.name+');' , 100 );
}
