rem: if (bLSetData.length == 0){ 
add: var check = false; for (var i=0; i<bLSetData.length; i++){ if ( bLSetData[i] != null ){ check = true; } }  if (check == false){ 
context: function newPolyline(){  	if (bLSetData.length == 0){  		//set warning message, show it, fade it  		$('errortext').innerHTML = "To add a polyline, there first must be a polyline set associated with this map. Please create a new polyline set, then you can add your new polyline!";			show('editerror');  		Fat.fade_all();  		//display new polyline set form      newPolylineSet();		}else{      // Display the New Form Div and Cancel Button     	show('newpolylineform');  		// Reset the Form  		$('polylineform_new').reset();  		  		// shortcut to the Select Option we are adding to  		var selectRoot = $('polylineset_id');  		  		selectRoot.options.length = 0;    		// add option for each set available  		if ( typeof(bLSetData) != 'undefined' ){    			for ( i=0; i<bLSetData.length; i++ ){  						if ( bLSetData[i] != null ){                 	selectRoot.options[selectRoot.options.length] = new Option( bLSetData[i].name, bLSetData[i].set_id );  						}    			}  		}		}};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/5e8473f694b3c744fd408e931c92a8672cd5bd0c/formsubmit.js/buggy/templates/formsubmit.js