function JumpToIt(list)
{
	var newPage = list.options[list.selectedIndex].value
  if (newPage != "None")
	{
  	window.location.href=newPage
  }
}

function popup(theURL,winName,features)
{ //v2.0
		if (popup.closed) {
			popup.close();
		}
  window.open(theURL,winName,features);
}

function blinki(id,count)
{
	if(document.getElementById(id))
	{
		var count = count
		var e = document.getElementById(id);
		e.style.visibility = ( e.style.visibility == 'visible' )? 'hidden' : 'visible';
		count--;
		if (count <= 0)
		{
			e.style.visibility = 'visible';
			return;
		}
		else
		{
		  setTimeout("blinki('"+id+"',"+count+");", 500);
		}
	}
}

function popup_window(mypage,myname,w,h,scroll,resizable,center,extendedsettings)
{
  if(w == "max")w = (screen.width-50);
  if(h == "max")h = (screen.height-50);
  
  if(w == "large")w = (screen.width-50);
  if(h == "large")h = (screen.height-250);
	
	if(w == "big")w = (screen.width-150);
  if(h == "big")h = (screen.height-350);
  
  var win= null;
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  
  if(h >= 600) wint = wint - 50;
  
  //try and compensate for menubar
  if(extendedsettings.indexOf("menubar=yes") == 0)
  {
    wint = wint - 65;
  }
  
  //try and compensate for toolbar
  if(extendedsettings.indexOf("toolbar=yes") == 0)
  {
    wint = wint - 65;
  }
  
  //try and compensate for status bar
  if(extendedsettings.indexOf("status=yes") == 0)
  {
    wint = wint - 55;
  }
  
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable='+resizable+',';
	  	settings +=''+extendedsettings+',';
	
  if(center == 'yes')
  {
    settings +='top='+wint+',';
    settings +='left='+winl+',';
  }
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}