function log(title , operation, contact){
	var res, colorDepth, java, documentTitle, operationId, contactId, tag;
	
	if (window.screen) {
		res = screen.width + 'x' + screen.height + 'x' + screen.colorDepth;
        colorDepth = screen.colorDepth;
	}
	else {
		res = '';
		colorDepth = '';
	}

    if (navigator.javaEnabled()) {
    	java = "1";
    } else {
    	java = "0";
    }
	
    if (title) {
		documentTitle = title ;
	} else { 
	    documentTitle = document.title ;
    }
    
    if (operation) {
		operationId = operation ;
	} else { 
	    operationId = 0 ;
    }

    if (contact) {
		contactId = contact ;
	} else { 
	    contactId = 0 ;
    }

    tag = '<img src="image.php?' +
               'documentTitle='     + documentTitle + '&' +
               'referer='           + document.referrer + '&' +
			   'userAgent='         + navigator.userAgent + '&' +
               'resolution='        + window.screen.width + 'x' + window.screen.height + '&' +
               'colorDepth='        + window.screen.colorDepth + '&' +
               'javascript=1'       + '&' +
               'java='              + java + '&' +
               'operation='         + operationId + '&' +
               'contact='           + contactId + '&' +
               ' width="0" height="0" />';
	document.write(tag);
}

function writeEmail(user, domain) {
	document.write(user + '@' + domain); 
}

function writeEmailLink(user, domain) {
	email = user + '@' + domain;
	document.write('<a href=\"mailto:' + email + '\">' + email + '</a>');
}

function openEmail(user, domain) {
	window.location = 'mailto:' + user + '@' + domain;
}