﻿<!-- Show informational popups -->
var informationalPopup;
var typicalCookieExpire=30;
			            
function showInformation(theURL){
    informationalPopup = window.open(theURL, 'dotPhotoInformation', 'width=700,height=500,scrollbars=yes,resizable=yes,toolbar=yes,status=no,menubar=no')
    informationalPopup.focus();
}

<!-- cookie manipulation -->
function setCookie(cookieName,cookieValue,expiredays) {
    var today = new Date();
    var expire = new Date();
    
    if (expiredays==undefined || expiredays==null || expiredays==0) expiredays=1;
    
    expire.setTime(today.getTime() + 3600000*24*expiredays);    
    document.cookie = cookieName + "=" + escape(cookieValue) + ";expires=" + expire.toGMTString();
}
function getCookie(c_name)
{
    if (document.cookie.length>0)
    {
        c_start=document.cookie.indexOf(c_name + "=");
      
        if (c_start!=-1)
        { 
            c_start=c_start + c_name.length+1; 
            c_end=document.cookie.indexOf(";",c_start);
            if (c_end==-1) c_end=document.cookie.length;
            return unescape(document.cookie.substring(c_start,c_end));
        } 
    }
    
    // Return a default
    return "";
}


