/********************************************************* JavaScript functions © 2004 **********************************************************/ function _doSetCookie (name,value,type,scope) { if (value==null | value=='null' | value=='') {return ''} else { var expdate=new Date(); expdate.setTime(expdate.getTime()+365*24*60*60*1000); if (scope!='') {name='onimod_'+onimod_dbid+'_'+name} else {name='onimod_'+name} if (type=='session') {document.cookie=name+'='+value+'; path=/'} else {document.cookie=name+'='+value+'; expires='+expdate.toGMTString()+'; path=/'}}} function delete_cookie (name, path) { var expiration_date=new Date(); expiration_date.setYear(expiration_date.getYear ()-1); expiration_date=expiration_date.toGMTString(); var cookie_string=escape (name)+"=; expires="+expiration_date; if (path!=null) {cookie_string+="; path="+path} document.cookie=cookie_string} function _doExtractCookie (name) { //get local db id cookie first if exist else try global one tmp_cookie=''; tmp_cookievalue=_doGetCookie('onimod_'+name); if (tmp_cookievalue!=null) {tmp_cookie=tmp_cookievalue} tmp_cookievalue=_doGetCookie('onimod_'+onimod_dbid+'_'+name); if (tmp_cookievalue!=null) {tmp_cookie= tmp_cookievalue} if(tmp_cookie=='' | tmp_cookie==null) {return null} else {return tmp_cookie}} function _doGetCookie (name) { var bites=document.cookie.split("; "); for (var i=0; i