function inputColor(id,tf) {
	if (document.all) {
		if (id.indexOf("i")!=-1) {
			if (tf==true) {
				document.all[id].className="inputFocus";
			} else {
				document.all[id].className="input";
			}
		}
	}
} // end func inputColor

function submitForm() {
	var a = submitForm.arguments;
	var cmd = '';
	var reg = '';
	var toolbarCmd = '';
	if(a.length>=3) toolbarCmd = a[2];
	if(a.length>=2) reg = a[1];
	if(a.length>=1) cmd = a[0];
	document.forms['dlgForm'].reg.value=reg;
	if(cmd!='') document.forms['dlgForm'].cmd.value=cmd;
	if(toolbarCmd!='') document.forms['dlgForm'].toolbarCmd.value=toolbarCmd;
	document.forms['dlgForm'].submit();
} // end func submitForm

function changeReg(reg) {
	submitForm('changeReg',reg);
} // end func changeReg

function toolbarCmd(cmd) {
	submitForm('Toolbar','',cmd);
} // end func toolbarCmd

function openWindow(url,params) {
		wnd = window.open(url,"media",params);
/*		wnd.document.open("text/html");
		wnd.document.write("<html><head><title>"+title+"</title>");
		wnd.document.write("</head>");
		wnd.document.write("<body>");
		wnd.document.write("<a href=\"'.$file.'\">download</a>");
		wnd.document.write("</body></head>");
		wnd.document.close();*/
}

