+function startTagSearch(searchfor)
+{
+ HTML_AJAX.grab(encodeURI('rpc.php?action=tag_search&for=' + searchfor));
+ refreshAvailableTags();
+ refreshSelectedTags();
+ showPhotoIndex();
+
+}
+
+function setViewMode(mode)
+{
+ window.alert(mode);
+}
+
+function clearSearch()
+{
+ document.getElementsByName('searchfor')[0].value = '';
+}
+
+function init_phpfspot()
+{
+ refreshAvailableTags();
+
+ if(refreshSelectedTags()) {
+ showPhotoIndex();
+ }
+}
+
+function setBackGrdColor(item, color)
+{
+ if(color == 'mouseover')
+ item.style.backgroundColor='#c6e9ff';
+ if(color == 'mouseout')
+ item.style.backgroundColor='#eeeeee';
+ if(color == 'mouseclick')
+ item.style.backgroundColor='#93A8CA';
+}
+
+var startup = 1;