function randomImg() {
	//init
	photosToSave = 2;
	maxPhotos = 7;
	expirationDays = '2';
	cookieUrl = ' ';
	cookieName = 'smartOfficeSolutions';

	//exec
	cookieVal = getCookie(cookieName);

	cookieValTmp = '1';
	for (i=1; i<photosToSave; i++) cookieValTmp += '.' + (i+1);

	if (cookieVal == null) setCookie(cookieName, cookieUrl, expirationDays, cookieValTmp);

	cookieVal = getCookie(cookieName);
	photosToSaveArray = cookieVal.split('.');
	for (i=0; i<photosToSave; i++) {
		if(isNaN(parseInt(photosToSaveArray[i]))) photosToSaveArray[i] = i+1;
	}
	
	p = 1;
	while(p) {
		k = 0;
		newPhotoID = Math.floor(Math.random() * maxPhotos) + 1;
		for (i=0; i<photosToSave; i++) {
			if (parseInt(photosToSaveArray[i]) == newPhotoID) {
				k = 1;
				break;
			}
		}
		if (!k) p = 0;
	}

	dataToSave = '';
	for (i=0; i<photosToSave-1; i++) dataToSave += photosToSaveArray[i+1] + '.';
	dataToSave += newPhotoID;
	setCookie(cookieName, cookieUrl, expirationDays, dataToSave);

	//test - alert(dataToSave);
	/* levelStr = '';
	for(i=0; i<level; i++) levelStr += '../'; */
	
	//document.write('<img src="' + levelStr + '_include/gui/headers/' + newPhotoID + '.jpg" width="329" height="98">')
	document.write('<img src="_include/gui/testimonials/' + newPhotoID + '.jpg" alt="Testimonials" title="Testimonials" width="209" height="85" border="0" />');
}