function deleteinfo(object,default_value) {
	if (object.value==default_value)
		object.value='';
}

function setDatums(object) {
	d = new Date();
	var datums, year;
	year = d.getYear() + '.';
	datums = '' + d.getMonth()+1 + '.' + d.getDate();

	object.value = year + datums;
}

function go_back(object) {
		object.history.back();
}

function open_window(link) {
      window.open(link,"_blank","width=800,height=400,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,status=yes");
      return;
}

function winopen (text) {
		msg=window.open('',"NewWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=400,height=400");
		msg.location = "_blank";
		msg.write(text);
		return 1;
}


function chktext(form) {
	text = form.text.value;
	if(text.indexOf('"') == 0)
		return 1;
	else return 0;
}

function checkmail(form) {
	var poz;
	text = form.text.value;
	poz = text.indexOf('@');
	poz2 = text.lastIndexOf('.');
	if(poz>=1 && poz2>(poz+1)) return 1;
	else return 0;
}

function chkDate(object) {
	d = new String;
	v = object.value;
	d = v.substr(0,4);
	if(d > '2000') {
		d = v.substr(5,2);
		if(d > '0' && d < '13') {
			d = v.substr(8,2);
			if (d > '0' && d < '32') {
				object.value = "2005.01.01";
				return 1;
			}
		}
	}
	return 0;
}
function chkSelect (object) {
 	v = object.value;
 	if(v == "")
 		return 0;
 	else return 1;
}
