function swo(tar,type){
	var tar; var type; var w; var h;
	if( type == 'full' ){ size = 'resizable=1'; newwin = "timetable"; full = 1; bar = 1; }
	else if( type == 'Large' ){ size = 'width=680, height=680'; newwin = "subwin"; full = 0; bar = 1; }
	else if( type == 'Image' ){ size = 'width=640, height=480'; newwin = "subwin"; full = 0; bar = 0; }
	else{ size = 'width=480, height=580'; newwin = "subwin"; full = 0; bar = 1; }
	var st = size + ',scrollbars=' + bar;
	newwin = window.open(tar,newwin,st);
	//focuswin(newwin, full);
	newwin.focus();
}
function focuswin(newwin, full){
	newwin.moveTo( 9, 9 );
	if( full ){ newwin.resizeTo( screen.availWidth -18, screen.availHeight -18 ); }	
	newwin.focus();
}

function swc(){ window.close() }

function subwin_mover(url){
	var url;
	window.opener.location = url;
	window.self.close();
}