	function closeme(seconds) {
		setTimeout("window.close()", seconds*1000);
	}
	function condcloseme(flag, seconds) {
		if(flag) {
			closeme(seconds);
		}
	}
	function reload_parent() {
		window.opener.location.reload(true);
	}
	function set_location(uri) {
		window.location = uri;
	}
	function set_parent_location(uri) {
		window.opener.location = uri;
	}
	function copy2parent(field, value) {
		window.opener.document.forms["main"][field].value = value;
	}
	function resize(width, height)
	{
		window.resizeTo(width, height);
	}
	function auto_resize(ex_width, ex_height)
	{
		var e, ie;
		ie = document.all;

		if(e = document.getElementById('sizer')) {
			if(ie) {
				resize(e.width + ex_width + 30, e.height + ex_height + 40);
			} else {
				resize(e.width + ex_width + 20, e.height + ex_height + 10);
			}
		}
	}
