function checkForm() 
{
  if (document.adminForm.f_Message.value != "") 
  {
    document.adminForm.submit();
	return true;
  }   
  else 
  {
    alert ("Заполните вопрос!");
	return false;
  }
}

function newWinDoc(xx,yy,targetWindow,htmlT){
myWin=open('',targetWindow,'width='+xx+',height='+yy+',status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no');
myWin.document.open();
myWin.resizeTo(xx+10,yy+50);
myWin.document.write(htmlT);
myWin.document.close();
if( document.body != null ) { // ie5
innerW = document.body.clientWidth;
innerH = document.body.clientHeight;
} else { // ns4
innerW = window.innerWidth;
innerH = window.innerHeight;
};
myWin.moveTo(screen.width/2-xx/2,screen.height/2-yy/2);
myWin.focus();

}

function WinPic(width, height, title, src)
{
  newWinDoc(width,height,'win1', 
  '<html><head><title>'+title+'</title></head>'+
  '<body bgcolor=#FFFFFF leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginwidth=0 marginheight=0>'+
  '<img src="'+src+'">'+
  '</body></html>'); 
  return false;
};