// JavaScript Document
$(document).ready(function() {
var optionsList = { 
        target:        '#outputList',   
        beforeSubmit:  showListRequest,  
        success:       showListResponse
    }; 
	$('#setListform').ajaxForm(optionsList);
});

function showListRequest() { 
	if(document.getElementById('txtadd2listLists').value=='' && document.getElementById('123').style.display=='none'){		
		document.getElementById('hintList').innerHTML='Please enter new list';
		return false;
	}
	document.getElementById('outputList').innerHTML='';
	document.getElementById('outputList').innerHTML='wait..';
} 

function showListResponse(responseText, statusText)  { 	
	document.getElementById('hintList').innerHTML='';
}  
