function setCookie(name,value,expires,path,domain,secure) { 
    var cookieString = name + "=" +escape(value) + 
       ( (expires) ? ";expires=" + expires.toGMTString() : "") + 
       ( (path) ? ";path=" + path : "") + 
       ( (domain) ? ";domain=" + domain : "") + 
       ( (secure) ? ";secure" : ""); 
    document.cookie = cookieString; 
}
var d1 = Math.round(Math.random()*9);
var d2 = Math.round(Math.random()*9);
var d3 = Math.round(Math.random()*9);
var d4 = Math.round(Math.random()*9);
var d5 = Math.round(Math.random()*9);
setCookie("cod", "" + d1 + "" + d2 + "" + d3 + "" + d4 + "" + d5, "", "", "","");
document.write("<img src=\"/guestbook/images/" + d1 +".gif\" border=\"0\" width=\"20\" height=\"20\" ALIGN=\"middle\">");
document.write("<img src=\"/guestbook/images/" + d2 +".gif\" border=\"0\" width=\"20\" height=\"20\" ALIGN=\"middle\">");
document.write("<img src=\"/guestbook/images/" + d3 +".gif\" border=\"0\" width=\"20\" height=\"20\" ALIGN=\"middle\">");
document.write("<img src=\"/guestbook/images/" + d4 +".gif\" border=\"0\" width=\"20\" height=\"20\" ALIGN=\"middle\">");
document.write("<img src=\"/guestbook/images/" + d5 +".gif\" border=\"0\" width=\"20\" height=\"20\" ALIGN=\"middle\">");
