function ChangeView (s){
	if (s.options[s.selectedIndex].value != "")
		location.href=s.options[s.selectedIndex].value;
}
function KBArticle(x){
	win("ArticlesJ.php?articleid="+x,"pow",560,400,"scrollbars=yes,resizable=no");
}
function KBNews(x){
	win("NewsJ.php?newsid="+x,"news",560,400,"scrollbars=yes,resizable=no");
}
function pic(FileName, width, height, caption){
	var wnd = window.open("", "newWindow", "alwaysraised=yes,dependent=yes,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=yes,width=500,height=400,left=10,top=10");
	wnd.document.open("text/html", "replace");
	wnd.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">');
	wnd.document.writeln("<HTML><HEAD><TITLE>"+caption+"</TITLE><SCRIPT>");
	wnd.document.writeln("function setSize(){");
	wnd.document.writeln("var img = window.document.images[0];");
	if (width > height) { 
		wnd.document.writeln("window.resizeTo(img.width+13, img.height+120+30);");
	}else {
		wnd.document.writeln("window.resizeTo(img.width+120+13, img.height+30);");
	}
	wnd.document.writeln("}</SCRIPT></HEAD>");
	wnd.document.writeln('<BODY bgcolor=#FFFFFF marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 text=#000000 link=#FFFF00 vlink=#FFFF00 alink=#00FF00 onBlur="window.close();" onLoad="setSize();">');
	wnd.document.writeln('<table bgcolor=#000000 width="100%" cellspacing=0 cellpadding=0><tr><td><IMG SRC="'+FileName+'" BORDER=0></td>');
	if (width > height) {
		wnd.document.writeln('</tr><tr height=120><td><font color=#FFFFFF face=verdana">'+caption+'</font></td></tr></table>');
	}else {
		wnd.document.writeln('<td width=5></td><td valign=center align=left width=115><font color=#FFFFFF face=verdana>'+caption+'</font></td></tr></table>');
	}
	wnd.document.writeln("</BODY></HTML>");
	wnd.document.close();
	wnd.onBlur = "window.close();";
	wnd.focus();
}