function isDemoOk(){     IsOk=true;     bver=Math.round(parseFloat(navigator.appVersion) * 1000);     if (navigator.appName.substring(0,8) == "Netscape")     {         if ((bver<5000) && (navigator.appVersion.indexOf("Mac")> 0))             IsOk=false;         else if (bver<4060)             IsOk=false;     }	 if (navigator.appName.substring(0,9) == "Microsoft")     {         if(bver<4000)             IsOk=false;     }     plugins=navigator.plugins;     if (plugins!=null && IsOk==false)     {         for(i=0;i!=plugins.length;i++)              if((plugins[i].name.indexOf("1.0")<0) && (plugins[i].name.indexOf("Java Plug-in")>=0))                  IsOk=true;     }     return IsOk;}function openDemo(htmlFile,htmlWidth,htmlHeight){var bua = navigator.userAgent;     s = 'resizable=0,toolbar=0,menubar=0,scrollbars=0,status=0,location=0,directory=0,width=350,height=200';     if(!isDemoOk())     {          open("http://www.turbodemo.com/error.html",'',s);     }     else     {     if (bua.indexOf("Opera")!= -1)       {//          window.open(htmlFile+".htm",'','width='+htmlWidth+',height='+htmlHeight+',top=10,left=10');
	  OpenWindow(htmlFile,htmlWidth,htmlHeight);      }     else      {//          window.open(htmlFile+".htm",'','width='+htmlWidth+',height='+htmlHeight+',top=10,left=10');
	  OpenWindow(htmlFile,htmlWidth,htmlHeight);      }      }}

function OpenWindow(htmlFile,htmlWidth,htmlHeight){
   var swfWidth, swfHeight
   swfWidth=htmlWidth-21;
   swfHeight=htmlHeight-19;
   top.wRef=window.open('','Tutorial','width='+htmlWidth+',height='+htmlHeight+',top=10,left=10', resizable=1);
   top.wRef.document.writeln(
    '<html><head><title>Palm-Tech Tutorial</title></head>'
   +'<body bgcolor="#FFFFFF" text="#000000"><center>'
   +'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + swfWidth + '" height="' + swfHeight + '">'
   +'<param name=movie value="' + htmlFile + '.swf">'
   +'<param name=play VALUE=true>'
   +'<param name=loop VALUE=false>'
   +'<param name=quality value=low>'
   +'<embed src="' + htmlFile + '.swf" quality=low pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + swfWidth + '" height="' + swfHeight + '">'
   +'</embed>'
   +'</object>'
   +'<center></body>'
   +'</html>');
   top.wRef.document.close();
}