
function ob(year,month,day,hour,minute,x,sat) {
	this.year = year;
	this.month = month;
	this.day = day;
	this.hour = hour;
	this.minute = minute;
	this.sat = sat;
	this.x = x;
///alert("new ob: " + day + " " + hour)
	return(this);
}


function get_option_key(opt) {
return("" + opt.year + "." + pad(opt.month) + "." + pad(opt.day) + '_' + pad(opt.hour) + "." + pad(opt.minute))
}


function get_option_name(opt) {
return("" + opt.year + "." + pad(opt.month) + "." + pad(opt.day) + ' ' + pad(opt.hour) + ":" + pad(opt.minute))
}


function get_sat_key() {
	switch (get_option().sat) {
	case ("q"): return("qscat");
	case ("s"): return("seawinds");
	}
}


function display_option(opt) { top.display_observation(opt); }


function previous_observation() { previous_option() }

function next_observation() { next_option() }

