Index: trunk/BNS/bnswindow.cpp
===================================================================
--- trunk/BNS/bnswindow.cpp	(revision 1695)
+++ trunk/BNS/bnswindow.cpp	(revision 1696)
@@ -346,4 +346,13 @@
   tab_eph->setLayout(layout_eph);
 
+  connect(_ephHostLineEdit, SIGNAL(textChanged(const QString &)),
+          this, SLOT(bnsText(const QString &)));
+  if (_ephHostLineEdit->text().isEmpty()) {
+    _ephPortLineEdit->setStyleSheet("background-color: lightGray");
+    _ephEchoLineEdit->setStyleSheet("background-color: lightGray");
+    _ephPortLineEdit->setEnabled(false);
+    _ephEchoLineEdit->setEnabled(false);
+  }
+
   // Clocks & Orbits Tab
   // -------------------
@@ -364,4 +373,11 @@
 
   tab_co->setLayout(layout_co);
+
+  connect(_clkPortLineEdit, SIGNAL(textChanged(const QString &)),
+          this, SLOT(bnsText(const QString &)));
+  if (_clkPortLineEdit->text().isEmpty()) {
+    _inpEchoLineEdit->setStyleSheet("background-color: lightGray");
+    _inpEchoLineEdit->setEnabled(false);
+  }
 
   // Broadcast Corrections I Tab
@@ -821,5 +837,5 @@
 
   // Enable/disable Proxy Options
-  // -----
+  // ----------------------------
   if (tabs->currentIndex() == 0) {
     if (!isEmpty) {
@@ -829,4 +845,30 @@
       _proxyPortLineEdit->setStyleSheet("background-color: lightGray");
       _proxyPortLineEdit->setEnabled(false);
+    }
+  }
+
+  // Enable/disable RINEX Ephemeris Options
+  // --------------------------------------
+  if (tabs->currentIndex() == 2) {
+    if (!isEmpty) {
+    _ephPortLineEdit->setStyleSheet("background-color: white");
+    _ephEchoLineEdit->setStyleSheet("background-color: white");
+    _ephEchoLineEdit->setEnabled(true);
+    } else {
+    _ephPortLineEdit->setStyleSheet("background-color: lightGray");
+    _ephEchoLineEdit->setStyleSheet("background-color: lightGray");
+    _ephEchoLineEdit->setEnabled(false);
+    }
+  }
+
+  // Enable/disable Clocks & Orbits Options
+  // --------------------------------------
+  if (tabs->currentIndex() == 3) {
+    if (!isEmpty) {
+    _inpEchoLineEdit->setStyleSheet("background-color: white");
+    _inpEchoLineEdit->setEnabled(true);
+    } else {
+    _inpEchoLineEdit->setStyleSheet("background-color: lightGray");
+    _inpEchoLineEdit->setEnabled(false);
     }
   }
