
/* Создание нового объекта XMLHttpRequest для общения с Web-сервером */
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function Gsub(){
document.getElementById('subgolos').clear;
document.getElementById('subgolos').innerHTML ="  <input type=submit name=sendgolos id=sendgolos value=\" \">";
}
function Gsub2(){
alert("Не выбран ни один из вариантов ответа");
}

function Gsuben(){
document.getElementById('subgolosen').clear;
document.getElementById('subgolosen').innerHTML ="  <input type=submit name=sendgolosen id=sendgolosen value=\" \">";
}
function Gsub2en(){
alert("Please, choose one of variants of the answer");
}



function openIt() {
 currEl = event.srcElement;
 if (currEl.className == "subhead") {
 newId = currEl.id + "vis" 
 imgId = currEl.id
 showIt = document.all(newId) ;
 if (showIt.style.display == "none") {
 showIt.style.display = "" ;
 document.images(imgId).src = 'img/plus.gif' 
 } else {
 showIt.style.display = "none" ;
 document.images(imgId).src = 'img/plus.gif' 
 }
 }
}function OCN(src)
{ 
src.style.backgroundColor = '#DCE9F7';
window.status='';
return true;
}
function OCN1(src)
{ 
src.style.backgroundColor = '';
window.status='';
return true;
}




function sekag(){
var zn=document.poiskform.searchcat.value;
if(zn==="Поиск по сайту..."){document.poiskform.searchcat.value="";}}
function sekag0(){
var zn=document.poiskform.searchcat.value;
if(zn===""){document.poiskform.searchcat.value="Поиск по сайту...";}
}



