function addfav(url, title)
   {
   if(document.all)
      {
      window.external.AddFavorite(url, title)
	  return false;
      }
   }

function makestart()
   {
		if(window.external)
		{
			this.style.behavior='url(#default#homepage)';
			this.setHomePage(location.href);
			return false;
		} 
   }


//open window
var Opened = false;
function ow(PageSrc,Width,Height)
{
Features="top=150,left=350,width="+Width+",height="+Height+",toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=yes";
if ((!Opened) || (NewWin.closed))
{
//	Opened = true;
	var win_name = 'win'+Math.floor(Math.random()*1000);

	NewWin = window.open(PageSrc,win_name,Features);
	NewWin.focus();
	var w = (window.document.body.offsetWidth)?window.document.body.offsetWidth - 4:window.document.innerWidth;
	var h = (window.document.body.offsetHeight)?window.document.body.offsetHeight - 4:window.document.innerHeight;
	if ((w != Width) || (h != Height)) {NewWin.resizeTo(Width + 10, Height + 29);}
}
else
{
	if (!NewWin.closed)
	{
		NewWin.location=PageSrc;
		NewWin.focus();
	}
}
}

function show_hide(id)
{
	var win = document.getElementById(id);	
	if(win.style.display=='block')
	{
		win.style.display='none';
	}
	else
	{
		win.style.display='block';
	}

}
