if(!window.obips_downloadguard_js){obips_downloadguard_js=1;if(typeof(obips)=="undefined"){obips=function(){}}obips.DownloadGuard=function(i){if(obips.DownloadGuard.id!=0){var g=new saw.ajax.Request("DownloadGuard");g.addArg("DownloadId",obips.DownloadGuard.id);var c=new saw.ajax.createConnection(g);c.setSync(true);var f=c.post();var h=obips.XMLDOM.selectSingleNode(f.response.getXML(),"downloadGuard");if(h!=null){var a=h.getAttribute("state");if(a=="running"){var b=obips.ResourceManager.getSingleton().getResource("common/saw.common.xml","kmsgDownloadWarning").getString();var d=new obips.MessageDialog.Model("Download Warning",b,null,obips.MessageDialog.TITLE_IMAGE_WARNING);var e=new obips.MessageDialog.Viewer(d,obips.FloatingWindow.Manager.getSingleton());return}}}obips.DownloadGuard.id=(new Date()).getTime()+(obips.DownloadGuard.counter++);i.id=obips.DownloadGuard.id;i.downloadFunc(i)};obips.DownloadGuard.counter=0;obips.DownloadGuard.id=0};