Index: SPARQLBuilderWWW/web/jsgui.html
===================================================================
--- SPARQLBuilderWWW/web/jsgui.html (revision 200)
+++ SPARQLBuilderWWW/web/jsgui.html (revision 202)
@@ -127,4 +127,5 @@
 
 function setEndpoints(ep){
+	$("*[name=selectendpoint]").append('<option value="endpoint">Endpoint');
 	for (var i = 0; i < ep.length; i++){
 		$("*[name=selectendpoint]").append('<option value="' + ep[i] + '">' + ep[i]);
@@ -136,36 +137,36 @@
 	var sel = $("*[name=selectendpoint]").val();
 
-	if(sel == "input"){
-		sel = $("*[name=inputendpoint]").val();
-	}
-
-	document.getElementById("showpath").style.display = "none";
-
-	ajaxload("view");
-	$.ajax({
-		type: "GET",
-		url : getClassListURL,
-		data: {
-		    ep: sel
-		},
-		dataType: 'json',
-		success : function(epclass) {
-			$("*[name=startclass] option").remove();
-			$("*[name=endclass] option").remove();
-
-			$("*[name=startclass]").append('<option value="startclass">StartClass (Instance num)');
-			$("*[name=endclass]").append('<option value="endclass">EndClass (Path num)');
-
-			for (var i = 0; i < epclass.length; i++){
-				$("*[name=startclass]").append('<option value="' + epclass[i]["uri"] + '">' + epclass[i]["display"]);
-				$("*[name=endclass]").append('<option value="' + epclass[i]["uri"] + '">' + epclass[i]["display"]);
+	if(sel != "endpoint"){
+
+		document.getElementById("showpath").style.display = "none";
+
+		ajaxload("view");
+		$.ajax({
+			type: "GET",
+			url : getClassListURL,
+			data: {
+			    ep: sel
+			},
+			dataType: 'json',
+			success : function(epclass) {
+				$("*[name=startclass] option").remove();
+				$("*[name=endclass] option").remove();
+
+				$("*[name=startclass]").append('<option value="startclass">StartClass (Instance num)');
+				$("*[name=endclass]").append('<option value="endclass">EndClass (Path num)');
+
+				for (var i = 0; i < epclass.length; i++){
+					$("*[name=startclass]").append('<option value="' + epclass[i]["uri"] + '">' + epclass[i]["display"]);
+					$("*[name=endclass]").append('<option value="' + epclass[i]["uri"] + '">' + epclass[i]["display"]);
+				}
+				ajaxload("hide");
+			},
+			error : function(XMLHttpRequest, textStatus, errorThrown) {
+				alert("繝ｪ繧ｯ繧ｨ繧ｹ繝域凾縺ｫ縺ｪ繧薙ｉ縺九�繧ｨ繝ｩ繝ｼ縺檎匱逕溘＠縺ｾ縺励◆�� + textStatus +":\n" + errorThrown);
+				ajaxload("hide");
 			}
-			ajaxload("hide");
-		},
-		error : function(XMLHttpRequest, textStatus, errorThrown) {
-			alert("繝ｪ繧ｯ繧ｨ繧ｹ繝域凾縺ｫ縺ｪ繧薙ｉ縺九�繧ｨ繝ｩ繝ｼ縺檎匱逕溘＠縺ｾ縺励◆�� + textStatus +":\n" + errorThrown);
-			ajaxload("hide");
-		}
-	});
+		});
+
+	}
 	document.getElementById("seclass").style.display = "block";
 }
@@ -278,5 +279,5 @@
 		<div id="endpoint">
 			<form name="endpoint">
-				<select size=1 name="selectendpoint" style="width: 200px;" onBlur="setEndpoint()">
+				<select size=1 name="selectendpoint" style="width: 200px;" onChange="setEndpoint()">
 				</select><br>
 			</form>
