function port_location(siteroot) {
  if ($('find_port').value == 0) {
    return;
  }

  // check to see if this port is using 'OLD' Urls 
  var option_value = $('find_port').value; 
  if (option_value.indexOf("http") == -1) {
    var show_old =0;
  }  else  {
    var show_old = 1;
  }

  if (show_old == 0) {
    var port_select = $('find_port');
    for(i=0;i<port_select.length;i++) {
       if (port_select.options[i].value == option_value) {
	  var port_name = port_select.options[i].text;
	  var pattern = /, /g;
	  port_name = port_name.replace(pattern, "-");
	  pattern = / /g;
  	  port_name = port_name.replace(pattern, "-");
          pattern = /[,\.]/g;
          port_name = port_name.replace(pattern, "-");
          pattern = /--/g;
          port_name = port_name.replace(pattern, "-");
	  break;
       }
    }
    window.location = siteroot + 'port/' + option_value + "/" + port_name;
  } else {
    window.location =  option_value;  
  }
}

function cline_location(siteroot) {
  if ($('find_cline').value == 0) {
    return;
  }
  window.location = siteroot +  $('find_cline').value;
}
