// various common javascript functions loaded in by the main header template
// not sure if all of these are used anymore ?


function bookmarksite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

function leapto(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function formhandle(frm){
    var url = document.weatherform.reslist.options[document.weatherform.reslist.selectedIndex].value;
    if(url!='') window.location.href = url;
}

function colourChange(id, colour){
	document.getElementById(id).bgColor = colour;
}