<!--

//search engine
function toGo(aForm)
{
		var srcEng, aUrl = "";
		
		var list = aForm.engine
		
		if (list.options[list.selectedIndex].value !== "000"){
			srcEng = list.options[list.selectedIndex].value;
		}else{alert("Please select search engine.")}
		
		var srcTerm = escape(aForm.question.value);
		
		switch(srcEng)
		{
			case "Yahoo":
				aUrl = "http://search.yahoo.com/bin/search?p=" + srcTerm;
				break;
			case "Google":
				aUrl = "http://www.google.com/search?q=" + srcTerm;
				break;
			case "Lycos":
				aUrl = "http://search.lycos.com/default.asp?lpv=1&loc=searchhp&query=" + srcTerm;
				break;
			case "AltaVista":
				aUrl = "http://www.altavista.com/sites/search/web?kl=xx&pg=q&q=" + srcTerm;
				break;
			case "Fortune":
				aUrl = "http://www.fortune.com/indexw.jhtml?txtSearchFortune=" + srcTerm +"&search_type=topic&channel=verity_search.jhtml&Search=Go";
				break;
			case "IntraSearch":
				aUrl = "http://isearch.web.att.com/search?q=" + srcTerm + "&spell=1&site=iSearch&output=xml_no_dtd&client=iSearch&access=p&proxystylesheet=iSearch";
				break;
			case "Post":
				aUrl = "http://www.post.att.com/cgi-bin/htpq?name=" + srcTerm + "&qtype=emp";
				break;
			case "Glossary":
				aUrl = "http://isearch.att.com/s97is.vts?SearchPage=%2Fsearch.html&collection=Production+Collection&ResultsCount=10&siteurl=glossary.att.com%2F&sitename=The+AT%26T+Glossary&siteimage=http%3A%2F%2Fglossary.att.com%2Fimages%2Fglossary.gif&queryText=" + srcTerm + "&Action=filter5";
				break;
			case "IRC":
				aUrl = "http://ircsearch.lis.att.com/search97cgi/s97_cgi.exe?Action=FilterSearch&Filter=urlfilter.hts&ResultTemplate=ircrslt.hts&ResultErrorTemplate=ircerror.hts&ResultCount=20&ResultMaxDocs=300&QueryText=" + srcTerm + "&SortSpec=modified+desc&startdate=&enddate=";
				break;			
			default:
			return false;
			break;
			//	aUrl = "http://search.yahoo.com/bin/search?p=" + srcTerm;
		}
		window.open(aUrl);
		//aForm.question.value = "";
	
}



function StockLook(aForm)
{	if(aForm.s.value == "")
	{
	alert("Please enter stock symbol.");
		//return false;
	}
	else
	{	
		window.open('http://finance.yahoo.com/q?d=t&s='+aForm.s.value);
		aForm.s.value = "";
	}
}

function WeatherLook(aForm)
{	if(aForm.where.value == "")
	{
	alert("Please enter zip code.");
		//return false;
	}
	else
	{	
		// window.open('http://finance.yahoo.com/q?d=t&s='+aForm.s.value);
		aForm.submit();
		aForm.where.value = "";
		
	}
}

var newWind = null;
function doWin(page_url,name,w,h) {
//if (newWind != null && newWind.open) newWind.close();
newWind = window.open(page_url, name, "width="+w+",height="+h+",scrollbars=1,menubar=0,location=0,toolbar=0,status=0,left=100,top=100,resizable=1");
newWind.focus();
}


//function for moving links
function getList(aForm){
var found_it = '?vallist=';
var ok = false;
for (var i=0; i < aForm.del.length; i++)  { 
if (aForm.del[i].checked)  {
	ok = true;
	found_it = found_it + aForm.del[i].value + ",";
	
} 
} 
if (ok){
doWin('moveto.cfm'+found_it, 'moving',500,500);
}else{ alert(' Please select at least one link! ');}
}

//function for moving stuff from one select box into another

function SelectAllList(CONTROL){
for(var i = 0;i < CONTROL.length;i++){
CONTROL.options[i].selected = true;
}
//form.submit();
}

function move_item(from, to)
{
  var f;
  var SI; /* selected Index */
  if(from.options.length>0)
  {
    for(i=0;i<from.length;i++)
    {
      if(from.options[i].selected)
      {
        SI=from.selectedIndex;
        f=from.options[SI].index;
        to.options[to.length]=new Option(from.options[SI].text,from.options[SI].value);
		from.options[f]=null;
		i--; /* make the loop go through them all */
      }
    }
  }
 // SelectAllList(to);
}



//-->
