/*Ver:0.9.12|15May2009|jquery_util.js|by Datamafia|http://datamafia.com|GNU/GPL|http://datamafia.com/license/ |requires:jquery 1.2+|last test:jquery 1.3.1*/
function o(t){window.location.href=t}function n(t){window.open(t)}function on_id(t){document.getElementById(t).style.display='block'}function off_id(t){document.getElementById(t).style.display='none'}function id_off_on(f,n){document.getElementById(f).style.display='none';document.getElementById(n).style.display='block'}function toggle_id(i){$('#'+i).toggle()}function complex_off(a){$(a).hide()}function complex_on(a){$(a).show()}function off(e){e.style.display='none'}function off_class(c){$('.'+c).hide()}function on_class(c){$('.'+c).show()}function toggle_class(c){$('.'+c).toggle()}function remove(i){$("#"+i).remove()}function makeInput(i,z,x){$('#'+i).replaceWith('<input type="text" name="'+i+'" size="'+z+'">'+x)}function swapNext(l){$('#'+l).hide();$('#'+l).next().show()}function swapPrev(l){$('#'+l).hide();$('#'+l).prev().show()}function clearField(f){f.value=''}function ckbox_swap(formName,fieldName){if(!document.forms[formName])return;var objCheckBoxes=document.forms[formName].elements[fieldName];if(!objCheckBoxes)return;if(objCheckBoxes.checked==true)objCheckBoxes.checked=false;else if(objCheckBoxes.checked==false)objCheckBoxes.checked=true}function ajaxCall(s,p,i){$.ajax({asynch:true,type:"POST",url:p,data:s,dataType:"text",success:function(data){$("#"+i).html(data)}})}function ajaxCallAppend(d,t,i){$.ajax({asynch:true,type:"POST",url:t,data:d,dataType:"text",success:function(data){$("#"+i).append(data)}})}function serialAjaxCall(s,t,i){var d=$("#"+s).serialize();$.ajax({asynch:true,type:"POST",url:t,data:d,dataType:"text",success:function(data){$("#"+i).html(data)}})}function load_ext(i,x){$('#'+i).load(x)}function emailValid(a){var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@] \1/;var check=/@[\w\-]+\./;var checkend=/\.[a-zA-Z]{2,5}$/;if(((a.search(exclude)!=-1)||(a.search(check))==-1)||(a.search(checkend)==-1)){return false}return true}
