function addToFavorites() { 

	if (window.external) { 
		window.external.AddFavorite(location.href,document.title) 
	} else { 
		alert("Sorry! Your browser doesn't support this function."); 
		} 
}

function Button1_onclick() {
/*var url=document.getElementById('Text1').value;

var yahoosrc = 'http://search.yahoo.com/search?ei=utf-8&fr=slv8-msgr&p='+encodeURI(url);
alert(yahoosrc);
var googlesrc = 'http://www.google.com/search?q='+encodeURI(url);
var livesrc ='http://search.live.com/results.aspx?q='+encodeURI(url)+ '&mkt=en-us&FORM=LIVSOP';

parent.frames[1].location.href =   yahoosrc;
parent.frames[2].location.href =   googlesrc;
parent.frames[3].location.href =   livesrc;
parent.frames[4].location.href="counter.htm";*/
url = encodeURI(document.getElementById('Text1').value);
var eFlag;
eFlag = '000';
var yahoochk;
  var googlechk;
  var livechk;
  yahoochk = document.getElementById('yahoochk').checked;
  googlechk = document.getElementById('googlechk').checked;
  livechk =document.getElementById('livechk').checked;
  if(yahoochk == true && googlechk == true && livechk == true)
  {
  	eFlag = '111';
  }
  else if (yahoochk  ==true && googlechk  == true && livechk  == false)
  {
 	 eFlag ='110';
  }
  else if(yahoochk  ==true && googlechk  == false && livechk  == true)
  {
  	eFlag = '101';
  }
  else if(livechk  == true && googlechk  == true && yahoochk  ==false)
  {
  	eFlag = '011';
  }
  else if(yahoochk  ==true && googlechk  == false && livechk  == false)
  {
  	eFlag = '100';
  }
  else if(yahoochk  ==false && googlechk  == true && livechk  == false)
  {
  	eFlag = '010';
  }
  else if(yahoochk  ==false && googlechk  == false && livechk  == true)
  {
  	eFlag = '001';
  }
parent.window.location = 'mainweb.htm?'+ eFlag + url;
}
function submitenter(e)
{
	var keycode;
	if (window.event)
	{
		keycode = window.event.keyCode;
	}
	else if (e)
	{
		keycode = e.which;
	}
	else
	{
		return true;
	}

	if (keycode == 13)
	   {
	    Button1_onclick()
	   return false;
	   }
	else
	{
	   return true;
	}

}
function hideFrame() {
    var frameset = parent.document.getElementById('masterFrameset');
   // origCols = frameset.cols;
  //  alert(document.getElementById('yahoochk').value);
  var yahoochk;
  var googlechk;
  var livechk;
  yahoochk = document.getElementById('yahoochk').checked;
  googlechk = document.getElementById('googlechk').checked;
  livechk =document.getElementById('livechk').checked;
  if(yahoochk == true && googlechk == true && livechk == true)
  {
  	frameset.cols = "30%,40%,*";
  }
  else if (yahoochk  ==true && googlechk  == true && livechk  == false)
  {
 	 frameset.cols = "50%,50%,*";
  }
  else if(yahoochk  ==true && googlechk  == false && livechk  == true)
  {
  	frameset.cols = "50%,0,*";
  }
  else if(livechk  == true && googlechk  == true && yahoochk  ==false)
  {
  	frameset.cols = "0,50%,*";
  }
  else if(yahoochk  ==true && googlechk  == false && livechk  == false)
  {
  	frameset.cols = "30%,0,0";
  }
  else if(yahoochk  ==false && googlechk  == true && livechk  == false)
  {
  	frameset.cols = "0,100%,*";
  }
  else if(yahoochk  ==false && googlechk  == false && livechk  == true)
  {
  	frameset.cols = "0,0,100%";
  }


}

function showFrame() {
    document.getElementById("masterFrameset").cols = origCols;
    origCols = null;
}

function setFocus() {
    document.getElementById('Text1').focus();
}