function mod(object,todo) {
	o = document.getElementById(object);
	if (object == "s") {
		if (todo == "on") {
			if (o.value == "Mit keresel?") {
				o.value = "";
			}
			o.className = "field active";
		}
		if (todo == "off" && o.value == "") {
			o.value = "Mit keresel?";
			o.className = "field";
		}
	}
	if (object == "blossom-comment-Name" || object == "blossom-comment-Url" || object == "blossom-comment-Content") {
		if (todo == "on") {
			o.className = "focus";
		}
		if (todo == "off" && o.value == "") {
			o.className = "";
		}
	}
}

function validate(field1,field2) {
	valid = true;
	if (field1 == "s") {
		f = document.getElementById(field1);
		if (f.value == "Mit keresel?" || f.value == "") {
			valid = false;
			f.focus();
		}
	}
	if (field1 == "blossom-comment-Name") {
		f1 = document.getElementById(field1);
		f2 = document.getElementById(field2);
		if (f1.value == "") {
			f1.className = "error";
			valid = false;
		}
		if (f2.value == "") {
			f2.className = "error";
			valid = false;
		}
	}
	if (field1 == "blossom-comment-Content") {
		f = document.getElementById(field1);
		if (f.value == "") {
			f.className = "error";
			valid = false;
		}
	}
	return valid;
}

function avatar(url,name) {
	var darab = url.split("/",5);
	document.write('<img src="http://s.freeblog.hu/storage/user/' + darab[4] + '/icon" alt="' + name + '" />');
}

