var request = null;
function createRequest() {
  try {
    request = new XMLHttpRequest();
  } catch (trymicrosoft) {
    try {
      request = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (othermicrosoft) {
      try {
        request = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (failed) {
        request = null;
      }
    }
  }
  if (request == null) alert("Ошибка при создании объекта XMLHttpRequest!");
}

function ShowLabel ( label, input ) {
	if ( document.getElementById( input ).value == '' )
		document.getElementById( label ).style.display = '';
}
function HideLabel ( label, input ) {
	document.getElementById( label ).style.display = 'none';
	document.getElementById( input ).focus();
}


/*
Вы используете атрибут target=blank для ссылок?
Если да, то вы должны знать, что XHTML 1.0 Strict не позволяет этого делать.
Хорошим решением проблемы может стать использование jQuery
для создания ссылок, которые открывают новые окна:
*/

$('a[rel$="external"]').click(function(){
 this.target = "_blank";
});

/*
Использование:
<a href="http://www.lepinskidesign.com.br/" rel="external">lepinskidesign.com.br</a>
*/

function showfoto(xtheme, xfold, xname, xbg){
window.open("/fullscreen.php?theme="+ xtheme +"&fold="+ xfold  +"&fullfoto=" + xname + "&bgcolor=" + xbg, "_blank",
"width="+(screen.availWidth)+",height="+(screen.availHeight)+",status=no,resizable=no,directories=no,scrollbars=yes,fullscreen=yes,toolbar=no,menubar=no,left=0,top=0")
}
