function DownloadRedirect(file,redirectUrl) {
  var browser = (window.navigator.userAgent.indexOf("MSIE 6.0") != -1);
  var browser2 = (window.navigator.userAgent.indexOf("MSIE 7.0") != -1);
  if ((browser) || (browser2)) {
    window.open(file, '_blank' ,'toolbar=0,location=no,directories=0,status=0, scrollbars=no,resizable=0,width=0,height=0,top=0,left=0');
    window.focus();
    location.href = redirectUrl;
  }
  else {
    location.href = redirectUrl;
  }
}

function DownloadRedirectPopup(file,redirectUrl) {
  var browser = (window.navigator.userAgent.indexOf("SV1") != -1);
  if (browser) {
    window.open(file, '_blank' ,'toolbar=0,location=no,directories=0,status=0, scrollbars=no,resizable=0,width=0,height=0,top=0,left=0');
    window.focus();
    opener.location.href = redirectUrl;
  }
  else {
    opener.location.href = redirectUrl;
  }
}

function OpenSearchText(idname, text) {
  if (document.getElementById(idname).innerHTML == "") {
	document.getElementById(idname).innerHTML = text;
  } else {
	document.getElementById(idname).innerHTML = '';
  }
  if (document.getElementById(idname + '_text').innerHTML == "hide") {
	document.getElementById(idname + '_text').innerHTML = "show";
  } else {
	document.getElementById(idname + '_text').innerHTML = "hide";
  }
}

function OpenAlternative() {
  if (document.getElementById('alternative').innerHTML == "") {
	document.getElementById('alternative').innerHTML = '<br />The steps above are recommended for most cases. However, sometimes you cannot access the Windows Task Manager. Parasites can disable, corrupt or even delete this system tool. In such case consider using free third-party alternatives <a target="_blank" href="http://www.microsoft.com/technet/sysinternals/utilities/PsList.mspx">pslist</a> and <a target="_blank" href="http://www.microsoft.com/technet/sysinternals/utilities/PsKill.mspx">pskill</a> developed by Mark Russinovich. The first command shows running processes and the second one can be used to kill selected tasks.<br /><br />Download both tools and extract their contents to the root directory of your main hard drive (usually, it\'s the C: disk).<br /><br /><strong>1. Open the Command Prompt</strong><br />Press the Start button and click on the <strong>Run...</strong> option. This will start the <strong>Run</strong> tool. Type in <strong>cmd</strong> and press <strong>OK</strong>.<br /><br /> <img border="0" src="/images/articles/fileproc3.jpg" /><br />Image 3. Open the Command Prompt<br /><br /><strong>2. List running processes</strong><br />Now the Command Prompt window should appear. Change current directory to a folder, where <strong>pslist</strong> and <strong>pskill</strong> commands are. You extracted them to the root of the C: disk. Use the following command to go there:<br /><strong>cd ../..</strong> <br />Then list running tasks using the <strong>pslist</strong> command. Invoke commands as shown on Image 4.<br /><br /> <img border="0" src="/images/articles/fileproc4.jpg" /><br />Image 4. List active tasks<br /><br /><strong>3. Kill the process</strong><br />Now type the command as shown on Image 5 and press enter:<br /><strong>pskill [process_name]</strong><br />This will terminate the named process.<br /><br /> <img border="0" src="/images/articles/fileproc5.jpg" /><br />Image 5. Terminate the process<br /><br />';
  } else {
	document.getElementById('alternative').innerHTML = '';
  }
}
$(document).ready(function() {
  var $tmp=String($("div#comments").html());
  if ($tmp.length>5) {
    $tmp=$tmp.replace(/superantispyware/i,'<a href="/review-superantispyware.html">SuperANTISpyware</a>');
    $tmp=$tmp.replace(/Spyware Doctor/i,'<a href="/review-spyware-doctor.html">Spyware Doctor</a>');
    $tmp=$tmp.replace(/SpywareDoctor/i,'<a href="/review-spyware-doctor.html">Spyware Doctor</a>');
    $tmp=$tmp.replace(/xoftspy/i,'<a href="/review-xoftspyse.html">XoftSpy</a>');



    $("div#comments").html($tmp);
  }
 // $("div:contains('superantispyware')").css("text-decoration", "underline");
// 		var $thm=$(this).html();
//		$thm=$thm.replace(/superantispyware/i,'<a href="/review-superantispyware.html">SuperANTISpyware</a>');
//		$(this).html($thm);


});
