function reminder(linkObj) {
	var userObj = document.forms.login.username;
	if (userObj.value != "") {
		window.open(linkObj.href + '/?loginname=' + userObj.value, '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=100,left='+((window.screen.width-200)/2)+',top='+((window.screen.height-100)/2));
	} else {
		if (document.getElementById) {
			var error = document.getElementById("enter_username");
			error.innerHTML = "Įveskite vartotojo vardą ir paspauskite 'Pamiršau slaptažodį'";
		}
		userObj.focus();
	}
	return false;
}

function m(input) {
	var f = document.forms.submit_content;
	parseInt(f[input].value) <= 0 ? f[input].value = 0 : f[input].value = parseInt(f[input].value)-1;
}
function p(input) {
	var f = document.forms.submit_content;
	parseInt(f[input].value) > 99 ? f[input].value = 99 : f[input].value = parseInt(f[input].value)+1;
}

function popup(img, title, width, height) {
	var id = 'win'+new Date().getTime();
	this[id] = window.open('', id, 'width=' + width + ',height=' + height + ',scrollbars=no,toolbar=no,location=no,status=no,resizable=no,left=' + ((screen.width-width)/2) + ',top=' + ((screen.height-height)/2));

	var popup_window = this[id];
	if (popup_window) {
		var d = popup_window.document;
		d.writeln('<html>');
		d.writeln('<head>');
		d.writeln('  <title>'+title+'</title>');
		d.writeln('</head>');
		d.writeln('<body style="margin:0;padding:0">');
		d.writeln('<img src="'+img+'" width="'+width+'" height="'+height+'">');
		d.writeln('</body>');
		d.writeln('</html>');
		d.close();
//		popup_window.focus();
	}
	return false;
}