/*
 * $Author: dbibbens $
 * $Revision: 1.2 $
 * $Date: 2007/12/14 18:51:51 $ 
 * $Source: /home/cvs/nationalhealthinsurancesite.com/local/lib/functions.js,v $
 */

var selected = false;

function change_state()
{
  var select = document.getElementById('state');
  if(select && select.selectedIndex > 0) {
    return true;
  } else {
    return false;
  }
}

function openWin(url, width, height) 
{
  var features = "toolbar=yes,location=yes,directories=no,status=yes," + 
    "menubar=yes,marginwidth=0,marginheight=0,resizable=yes,scrollbars=" +
    "yes,width=" + width + ",height=" + height;
  
  if(!selected) {
    popup_win(url, 'results', features);
  }
}

function popup_win(url, name, features) 
{
  window.open(url, name, 'screenX=0,screenY=0,left=0top=0,' + 
			  features);
}
