function pop(page)
{
	var url = page
	nWin = window.open(url, null, "height=540,width=446,status=no,toolbar=no,menubar=no,location=no"); 
	return;
}


function pop2(t,i)
{
  var txt = "txt=" + t; 
  var img = "img=" + i;
  var strPage = "_pic.asp?" + txt + "&" + img;
  strPage = replaceSpace(strPage);
  pop(strPage);
  return;
}

function replaceSpace(items) 
{
  var charect = "";
  for (var n = 1 ; n <= items.length ; n++) 
  {
    if (items.substring(n-1,n) == " ") 
    { 
	  charect+="+"; 
    }
    else 
    {
	  charect+=items.substring(n-1,n); 
    }
  }
return charect;
}