  function testinm(num)
  {
    document.getElementById("tspm"+num).style.display="";
    document.getElementById("lspm"+num).style.display="";
    document.getElementById("rspm"+num).style.display="";
    document.getElementById("bspm"+num).style.display="";
    document.getElementById("rshm"+num).style.display="none";
    document.getElementById("bshm"+num).style.display="none";
  }
  function testoutm(num)
  {
    document.getElementById("rshm"+num).style.display="";
    document.getElementById("bshm"+num).style.display="";
    document.getElementById("tspm"+num).style.display="none";
    document.getElementById("lspm"+num).style.display="none";
    document.getElementById("rspm"+num).style.display="none";
    document.getElementById("bspm"+num).style.display="none";
  }
    function sendmsg(){
    	if (document.all.email.value=="" && document.all.email.value=="Ваш e-mail")
    	{
    		window.alert("Заполните, пожалуйста, e-mail контактного лица");
    		document.all.email.focus();
    		return;
    	}
    	else if(document.all.email.value.indexOf('@')==-1 || document.all.email.value.indexOf('.')==-1)
    	{
    		window.alert("Ошибка! Неправильный e-mail контактного лица");
    		document.all.email.focus();
    		return;
    	}
    	NewsPosting.submit();
    }
    function emailFocus(){
    	if (document.all.email.value=="Ваш e-mail")
    	{
    		document.all.email.value="";
    		document.all.email.focus();
    	}
    }
    function emailBlur(){
      if(document.all.email.value=="")
    	{
    		document.all.email.value="Ваш e-mail";
    	}
    }
var ob_tr_color;
  function flashon(obj,bflag)
  {
    ob_td=obj.firstChild;
    if(ob_td) if (ob_td.nodeName=="#text") ob_td=ob_td.nextSibling;
    var buf_color;
    if (bflag)
    {
      ob_tr_color=ob_td.style.backgroundColor;
      buf_color="#dfe5e6";
    }
    else
    {
      buf_color=ob_tr_color;
    }
    while(ob_td)
    {
      ob_td.style.backgroundColor=buf_color;
      ob_td=ob_td.nextSibling;
      if(ob_td) if (ob_td.nodeName=="#text") ob_td=ob_td.nextSibling;
    }
  }
	function getDIVText(name)
	{
		if(document.getElementById(name))
			return document.getElementById(name).innerHTML;
		else
			return '';
	}
	function request_data(ob_url) {
		var xmlhttp;
    if (window.ActiveXObject)
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    else
		  xmlhttp = new XMLHttpRequest();
		xmlhttp.open("GET", ob_url, false);
		xmlhttp.send("");
    return xmlhttp.responseText;
	}
	function open_page(url)
	{
		window.open(url+"&sshow=rews","","scrollbars,resize,HEIGHT=600,WIDTH=800");	return false;
	}

