function popup(page) {
     spotterwindow = window.open(page , 'info' , 'width=582,height=630,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,hotkeys=0,screenx=0,screeny=0,left=0,top=0');
     if (window.focus) {spotterwindow.focus();}
}
function popup(page, width) {
     spotterwindow = window.open(page , 'info' , 'width=' + width + ',height=630,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,hotkeys=0,screenx=0,screeny=0,left=0,top=0');
     if (window.focus) {spotterwindow.focus();}
}
function imgpopup(page) {
     spotterwindow = window.open(page , 'info' , 'width=800,height=782,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,hotkeys=0,screenx=0,screeny=0,left=0,top=0');
     if (window.focus) {spotterwindow.focus();}
}
function helppopup(page) {
     helpwindow = window.open(page , 'help' , 'width=782,height=630,location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=0,hotkeys=0,screenx=0,screeny=0,left=0,top=0');
     if (window.focus) {helpwindow.focus();}
}
function VumPreloadImages() {
     var d=document; if(d.images){ if(!d.Vump) d.Vump=new Array();
     var i,j=d.Vump.length,a=VumPreloadImages.arguments; for(i=0; i<a.length; i++)
     if (a[i].indexOf('#')!=0){ d.Vump[j]=new Image; d.Vump[j++].src=a[i];}}
}
function saveCookie(name,value,days) {
     if (days) {
         var date = new Date();
         date.setTime(date.getTime()+(days*24*60*60*1000))
         var expires = '; expires='+date.toGMTString()
     }
     else expires = ''
     document.cookie = name+'='+value+expires+'; path=/'
}
function readCookie(name) {
     var nameEQ = name + '='
     var ca = document.cookie.split(';')
     for(var i=0;i<ca.length;i++) {
         var c = ca[i];
         while (c.charAt(0)==' ') c = c.substring(1,c.length)
         if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length)
     }
     return null
}
function deleteCookie(name) {
     saveCookie(name,'',-1)
}
