<!--
function popupWindow(sURL, iHeight, iWidth) 
{
	sOpt = "'menubar=no,resizable=no,scrollbars=no,height="+iHeight+",width="+iWidth+"'";
	win=window.open(sURL,'mywindow',sOpt);
	if (!win.opener) win.opener=self;
	if (win.focus) win.focus();
}

//Used to open the spywaresearch page in a new window.
function gospywaresearch()
{
	sKeyword = document.getElementById("txtSpyKeyword").value;
	//spath = '/securitylabs/spywaresearch.aspx?sk=' + sKeyword;  this method no longer used 09/27
	spath = 'http://facetime.spywareguide.com/product_search.php?s=' + sKeyword;
	window.open(spath);
				
}

//Used to open the greynetguide search page in a new window.
function gogreynetsearch()
{	
	sKeyword = document.getElementById("txtGreyKeyword").value;
	spath = 'http://www.applicationsguide.com/product_search.php?s=' + sKeyword;
	window.open(spath);
				
}

// Used with IM & Spyware Search to track last place user entered info so that the right submit button can be determined
function setFocus(e) { 
	lastFocusElement = e;
} 

// Used to trap the Enter key and force submit of the IM or Spyware search based on the lastFocusElement
function CheckKey(e) { 
   
   if (e.keyCode == 13)  {
	if ( lastFocusElement == 'signup') 
		{ return false; }
	if (lastFocusElement == 'spy') 
		{ document.getElementById("btnSpySearch").focus(); }
	if (lastFocusElement == 'threat') 
		{ document.getElementById("ThreatSearch1_btnIMSearch").focus(); }
	if (lastFocusElement == 'grey') 
		{ document.getElementById("btnGreynetSearch").focus(); }
	} 
} 

//-->
