<!--
function emailCheck (emailStr) {


var checkTLD=1;


var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;

var emailPat=/^(.+)@(.+)$/;

var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";

var validChars="\[^\\s" + specialChars + "\]";

var quotedUser="(\"[^\"]*\")";

var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;

var atom=validChars + '+';

var word="(" + atom + "|" + quotedUser + ")";

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");

var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

alert("Email неправильный. Проверьте наличие точки и знака @.");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];


for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("Ths email contains invalid characters.");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("Ths domain name contains invalid characters.");
return false;
   }
}

// See if "user" is valid

if (user.match(userPat)==null) {

// user is not valid

alert("The email doesn't seem to be valid.");
return false;
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

// this is an IP address

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Destination IP address is invalid!");
return false;
   }
}
return true;
}

// Domain is symbolic name.  Check if it's valid.

var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("The domain name does not seem to be valid.");
return false;
   }
}


if (checkTLD && domArr[domArr.length-1].length!=2 &&
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("The address must end in a well-known domain or two letter " + "country.");
return false;
}


if (len<2) {
alert("This address is missing a hostname!");
return false;
}

return true;
}


var dom = document.getElementById?1:0;
var ie4 = document.all && document.all.item;
var opera = window.opera;
var ie5 = dom && ie4 && !opera;
timerID = 0;
function getLayer(layerName){
  if(dom) return document.getElementById(layerName);
  if(ie4 || ie5) return document.all[layerName];
}

//////////////////
function showO1 ()
{
	if (getLayer('topr1'))
	{
		getLayer('topr1').innerHTML  = '<img src=http://www.itmgroup.ru.postman.ru/i/top-menu-right1.png>';
		getLayer('topl1').innerHTML  = '<img src=http://www.itmgroup.ru.postman.ru/i/top-menu-left1.png>';
	}
}
function hideO1 ()
{
	if (getLayer('topr1'))
	{
		getLayer('topr1').innerHTML  = '';
		getLayer('topl1').innerHTML  = '';
	}
}

function showO (num, prefix)
{
    hide_all_sub(prefix);
    showObject(prefix + num);
    obj = getLayer(prefix + num);
    if (obj)
    if (obj.innerHTML!='')
    {
        showO1();
    }
}
function block_hideO(){
		block_hide();
		showO1();
}
function hideO(name){
        hide(name);
        hideO1();
}
////////////////////

function block_hide(){clearTimeout(timerID);}


function hide(name){
    timerID = setTimeout("hideObject(\'" + name + "\')", 100);
}
function hide_all(){
  for(i=1; 1; i++){
    hide_all_sub('Nav'+i);
    obj = getLayer('Nav'+i);


      if(null != obj){obj.style.display='none';}
	  else{break;}
  }
}
function hide_all_sub(prefix){
  for(i1=0; 1; i1++){
    obj1 = getLayer(prefix+i1);
      if(null != obj1){obj1.style.display='none'; }
	  else{break;}
  }
}
function showObject(x) {
  hide_all();
  clearTimeout(timerID);
  obj=getLayer(x);
if (obj)
  obj.style.display='block';
}
function showSubObject(x,prefix) {
  hide_all_sub(prefix);
  clearTimeout(timerID);
  obj=getLayer(x);
  obj.style.display='block';
}
function hideObject(x) {
  hide_all_sub(x);
  obj=getLayer(x);
  obj.style.display='none';
}
function showimg(u,wd,hg)
{
    s = window.open('','Pic','toolbar=no,location=no,directoties=no,status=no,scrollbars=no,menubar=no,resizable=yes,top=50,left=120,width='+(wd+16)+',height='+(hg+16));
    s.document.open();
    s.document.writeln('<html><head><title>photo</title></head><body bgcolor=ffffff onload="window.self.focus();return true;" leftMargin="0" topMargin="0" marginheight=0 marginwidth=0><table cellcpacing=0 cellpadding=5 border=0 width=100% height=100%><tr><td align=center><a href=javascript:window.close()><img src=' + u + ' border=0 width=' + wd + ' height="' + hg + '" alt="close"></a></td></tr></table></body></html>');
    s.document.close();
    s.focus();
}


nn4 = (document.layers) ? true : false;
ie4 = (document.all) ? true : false;
dom = (document.createTextNode)? true : false;

function popupWindow(fileUrl, winW, winH, winN, scrollB) {
	var winWidth = (winW)? winW : 740;
	var winHeight = (winH)? winH : 520;
	var winName = (winN)? winN : 'popupWin'
	var scrollBars = (scrollB)? scrollB : 'yes'
	if (nn4 || ie4 || dom) {
		if (screen.width < winWidth + 50) { winWidth = screen.width - 50; scrollbars = 'yes' }
		if (screen.height < winHeight + 100) { winHeight = screen.height - 100; scrollbars = 'yes' }
		posX = Math.round((screen.width - winWidth) / 2);
		posY = Math.round((screen.height - winHeight) / 2);
		posCode = (nn4 || dom)? "screenX="+posX+",screenY="+posY : "left="+posX+",top="+posY;
	} else {
		posCode = "";
	}
	var popupWin = window.open(fileUrl, winName,"menubar=no,toolbar=no,scrollbars=" + scrollBars + ",status=yes,resizable=yes,width=" + winWidth + ",height=" + winHeight + "," + posCode);
	if (popupWin) popupWin.focus();
}


function Toggle( secid1, secid2 )
{
	var sectionId1 = document.getElementById(secid1);
	var sectionId2 = document.getElementById(secid2);
	if (sectionId1 == null) return;
	if (sectionId1.style.display == '')
	{
		sectionId1.style.display = 'none';
		sectionId2.style.display = 'none';
		var ImgSrc = document.getElementById("i" + secid1);
		ImgSrc.src = "/images/button/m_a.gif";
	}
	else
	{
		sectionId1.style.display = '';
		sectionId2.style.display = '';
		var ImgSrc = document.getElementById("i" + secid1);
		ImgSrc.src = "/images/button/m_na.gif";
	}
}

function chst (val)
{
	
	var obj = document.getElementById(val);
	if (!obj) return true;
	var openflag = (obj.style.display == '' || obj.style.display == 'block');
 
	if (openflag)
	{
		obj.style.display='none';	
	}
	else
	{
		obj.style.display='';	
	}
	return false;
}	

function wiiindow(name)
{
  window.open(name, '_blank', 'width=550,height=360');
}

function bannerotator()
{
var jetzt=new Date();
var z=(jetzt.getSeconds())%3;
return z;
}

//-->    