//generic openWin that accepts parameter settings
function openWin(url,name,params) {
		theWin = window.open(url,name,params);
		theWin.focus();
}

//used to get a query string parameter based on name
//ex:  var source = getParam("source")
function getParam(name)
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}

//recipe dropdown javascript
function jumpto(x)
{
  if (document.form1.meal.value != "null")
    document.location.href = x;
}