/********************************************************************* Basement v.1.1.1 build 20090119 JS Auxiliary Library. Copyright(C)2002-2009 Hapu Estudio Creativo(R) - http://hapu.net LICENSE, ADDITIONS & FULL CREDITS ON SOURCE CODE ---------------------------------------------------------------------- *** THIS IS A REALLY VERY REDUCED, LIMITED AND COMPRESSED VERSION *** DON'T EDIT/PUBLISH! Latest version at http://hapu.net/src Feel free to use [at your OWN risk] so long as you keep this copyright Feedback, bugs, patches to red@hapu.net - DONATIONS ARE WELCOMED! :) *********************************************************************/ var defaultstatus = 'Page loaded'; var submitcount=0; var filter_alp_chrs = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; var filter_num_chrs = '0123456789'; // mod_phpinjs_1.0.0.js.php function str_replace(f,r,s,_i){if(typeof(s)=='object'){var rd=new Array();for(k in s){rd[k]=str_replace(f,r,s[k],_i);}return rd;}if(typeof(f)=='object'){for(k in f){if(typeof(r)=='object')s=str_replace(f[k],r[k],s,_i);else s=str_replace(f[k],r,s,_i);}return s;}if(typeof(f)!='string')f=f+'';if(typeof(r)=='undefined') r='';else if(typeof(r)!='string')r=r+'';if(typeof(s)!='string')s=s+'';var rd='';var s1=_i?s.toLowerCase():s;var f1=_i?f.toLowerCase():f;var io;while((io=s1.indexOf(f1))!=-1){rd+=s.substring(0,io)+r;s=s.substring(io+f.length,s.length);s1=s1.substring(io+f.length,s1.length);}return rd+s;} function str_ireplace(f,r,s){return str_replace(f,r,s,true);} function addSlashes(s){return str_replace(new Array('\'','"','\n'),new Array('\\\'','\\"','\\n'),s);} function stripSlashes(s){return str_replace(new Array('\\\'','\\"','\\n'),new Array('\'','"','\n'),s);} function ltrim(s){return s.replace(/^\s+/,'');} function rtrim(s){return s.replace(/\s+$/,'');} function trim(s){return ltrim(rtrim(s));} //mod_php2html_1.0.1.aux.js.php function winStatus(s){if(typeof(s)!='undefined')window.status=s;else if(typeof(defaultstatus)!='undefined')window.status=defaultstatus;return true;} function firstChkForm(form,anxious,mandatory){if(typeof(mandatory)!='undefined'){var a=mandatory.split('|');var i='';for(i=0;i-1))return true;else if(d&&(ch==d)&&f.value.indexOf(d)==-1)return true;else return false;} function getElmById(aID){var element=null;if(document.getElementById)element=document.getElementById(aID);else if(document.layers)element=document.layers[aID];else if(document.all)element=document.all[aID];return element;} function showDiv(set, id) { for (var div in set) { var e = getElmById(div); if (e==null) continue; e.style.visibility = 'hidden'; e.style.display = 'none'; } if (typeof(id)=='undefined') return false; var e = getElmById(id); if (e==null) return false; var cfg = set[id].split(':') for (var i=0; i<=cfg.length-1; i=i+2) e.style[cfg[i]] = cfg[i+1]; e.style.visibility = 'visible'; e.style.display = 'block'; return false; } function chkEmail(e) { var re = /^(["|']?)([^@"'<]*)(["|']?) ?(<)?([^ <>]*)(>)?/i; var a = re.exec(e); if (a[1]+a[3]+a[4]+a[6]!=''&&((a[1]!=a[3])||(a[4]&&!a[6])||(a[6]&&!a[4]))) return false; e = a[4] ? a[5] : a[2]+a[5]; var re = new RegExp(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/); return re.test(e); } /*********************** END Basement *****************************/ /*********************************************** * Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ /* Modified to support Opera */ /* Added Message by Hapu */ function bookmarkThis(title,url,mssg){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all) // ie window.external.AddFavorite(url, title); else if (mssg) alert(mssg); }