function kn(id){
window.open('index.php?a=kons&id='+id, 'kn', 'width=450,height=290');
}
function help(sh_id,tp_id){
window.open('index.php?a=tabhelp&id='+sh_id+'#'+tp_id, 'kn','toolbar=no,location=no,directories=no,status=yes,menubar=no,width=550,height=400,scrollbars=yes,resizable=yes');
}
function show_img(img_n) {
document.all.ImageBlock.innerHTML = '<img src="/timg'+img_n+'" border="0">';
}
function checkVote(){
var voteValue
for (var cntr=0; cntr <  document.voteform.vote_select.length; cntr++) {
if (document.voteform.vote_select[cntr].checked) voteValue = document.voteform.vote_select[cntr].value
}
if (voteValue) OpenWindow = window.open('index.php?a=vote&id='+voteValue, 'vote', 'width=400,height=470');
else alert("Выберите подходящий ответ");
}
function getnum(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function makeObj(obj)
{
	this.elem = document.getElementById(obj);
   	this.css = this.elem ? this.elem.style : null;
	return this;
}
window.focus();
