function wcg(id) 
{

    var centerwidth=(screen.width/2)-(650/2);
    var centerheight=(screen.height/2)-(950/2);
    window.open('http://cup.c58.ru/_inc/live/?id=1', 'popup', 'width=950, height=650, menubar=no, scrollbars=no, toolbar=no, location=no, resizable=no, top=" + centerheight + ", left=" + centerwidth + "');

}

function add_code(code)

{

	document.poster.text_ru.value+=(' '+code+' ');

	document.poster.text_en.value+=(' '+code+' ');

}



function open_post_window(url)
{
	addwin = window.open(url,"post_win","");
}



function open_preview_window(url)
{
	addwin = window.open(url,"preview_win","width=550,height=550,scrollbars,resizable");
}



function do_addurl_transfer()
{
	opener.document.postform.text.value+=("[url=\""+self.document.forms[0].url.value+"\"]"+self.document.forms[0].text.value+'[/url]');
  self.close();
}



function GP_popupConfirmMsg(msg) { //v1.0
  document.MM_returnValue = confirm(msg);
}



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



function controlExpand() {

  var sup = event.srcElement.id;

  var on_img = 'http://img.cyberfight.ru/outline/plus.gif';

  var off_img = 'http://img.cyberfight.ru/outline/minus.gif';  

  if (sup != '')

  {

  var sub = document.all[(sup + 'Sub')];

  var img = document.all[(sup + 'Img')];

    if (sub != null)

    {

      if (sub.style.display == 'none')

      {

        sub.style.display = '';

		img.src = off_img;

      }

      else

      {

        sub.style.display = 'none';

		img.src = on_img;		

      }

    }

  }

}

