JS-Code function buttonchange(element,action) { if(action == 'mover') { element.oldclassName= element.className; element.className='buttondown';} else if(action == 'mout') { if(element.oldclassName != "") { element.className= element.oldclassName; }} else if(action == 'c') { element.className='buttondown'; element.oldclassName= 'buttondown'; }} function datasent(url) { var poststring = 'clientquery=ajaxquery';new Ajax.Request(url, {evalScripts:true, asynchronous:true, method:'get', postBody:poststring,on400: function(t) { $('error-div').innerHTML = t.responseText; $('error-div').style.display = 'inline'; } } );return false; } function closeelement(elementid) { $(elementid).style.display = 'none'; $(elementid).innerHTML = ''; } function set_new_div_data2(url,div_to_show) { var poststring = 'clientquery=ajaxquery';var x = new Ajax.Updater( div_to_show, url, { evalScripts:true, checkCodes:true, method:'post', postBody:poststring, onLoading:function(request){Element.show('indicator'); },on400: function(t) { $(t.statusText).innerHTML = t.responseText; $(t.statusText).style.display = 'inline'; },on200:function(request){ Element.hide('indicator'); } }); } function set_new_div_data(url,div_to_show) { var poststring = 'clientquery=ajaxquery';var x = new Ajax.Updater( div_to_show, url, { evalScripts:true, checkCodes:true, method:'post', postBody:poststring, onLoading:function(request){Element.show('indicator')},on400: function(t) { $('error-div').innerHTML = t.responseText; $('error-div').style.display = 'inline'; }, on200:function(request){ } }); } function formSend(formular,url) { var stringtosend =''; stringtosend = Form.serialize( formular ); new Ajax.Request(url, { evalScripts:true, asynchronous:true, method:'post', postBody:stringtosend + '&savedata=1&clientquery=ajaxquery',on400: function(t) {$('error-div').innerHTML = t.responseText; $('error-div').style.display = 'inline';}, on200:function(t){$('success-div').innerHTML = t.responseText;$('success-div').style.display = 'inline';} } );} function formSend2update(formular,url1,div1update) {var stringtosend =''; stringtosend = Form.serialize( formular );stringtosend = stringtosend + '&clientquery=ajaxquery';var x = new Ajax.Updater( div1update, url1, { evalScripts:true, checkCodes:true, method:'post', postBody:stringtosend, on400: function(t) { $('error-div').innerHTML = t.responseText; $('error-div').style.display = 'inline'; } }); }