function pop(u,t) {
	switch(t) {
		case 1: return window.open(u,"","scrollbars=yes,width=400,height=300,left=20,top=20")
		case 2: return window.open(u,"pop","scrollbars=yes,resizable=no,width=410,height=560,left=20,top=20")
		case 3: return window.open(u,"","scrollbars=yes,width=500,height=200,left=20,top=20")
		case 4: return window.open(u,"","scrollbars=yes,resizable=yes,width=760,height=560,left=20,top=20")
	}
	return window.open(u)
}

function trim(ch) {
	return ch.replace(/(^\s*)|(\s*$)/g, "") 
}