var BusyUploading = 0; function OnSubmit() { if( BusyUploading == 0) { document.pform.submit(); } else { alert("Image Uploading..."); } } function SetAllCheckBoxes(FormName, FieldName, CheckValue) { if(!document.forms[FormName]) return; var objCheckBoxes = document.forms[FormName].elements[FieldName]; if(!objCheckBoxes) return; var countCheckBoxes = objCheckBoxes.length; if(!countCheckBoxes) objCheckBoxes.checked = CheckValue; else // set the check value for all check boxes for(var i = 0; i < countCheckBoxes; i++) objCheckBoxes[i].checked = CheckValue; } function SpaceAction(Action) { document.forms["MyListings"].elements["mode"].value = Action; document.forms["MyListings"].submit(); } function Search(Input) { if (Input != document.forms["SearchForm"].elements["search"].value) { document.forms["SearchForm"].submit(); } }