<!--
/********* Библиотека файлв crm.shtml*/
function shHdSsyl()
{
if(isIE)
{
document.write('<a href="javascript:void(0);" onClick="TstPoint(\'refzay\',\'-66\',\'290\');" onMouseOut="Hide(\'refzay\');" style="cursor:help;"><b><sup style="margin:0 -8px 0 -8px;">&nbsp;*)&nbsp;</sup></b></a>');
}else
{
document.write('<a href="javascript:void(0);" onClick="Show(refzay);" onMouseOut="Hide(refzay);" style="cursor:help;"><b><sup style="margin:0 -8px 0 -8px;">&nbsp;*)&nbsp;</sup></b></a>');
}
}

function SsylPoz()
{
if(isIE)
{
document.write('<div align=left id=refzay style="position:absolute;left:0;top:200;z-index:4;margin:0;margin-bottom:-55;width: 320px; height: 76px;display:none;">');
}
else{
document.write('<div align=left id=refzay style="position:absolute;left:320px;top:94px; z-index:4;margin:0;margin-bottom:-75px;width: 320px; height: 40px;display:none;">');
}
}

function shHdSsylPrc()
{
if(isIE)
{
document.write('<a href="javascript:void(0);" onClick="TstPoint(\'refcrm\',\'22\',\'300\');" onMouseOut="Hide(\'refcrm\');" style="cursor:help;"><b><sup style="margin:0 -6px 0 -6px;">&nbsp;*)&nbsp;</sup></b></a>');
}else
{
document.write('<a href="javascript:void(0);" onClick="Show(refcrm);" onMouseOut="Hide(refcrm);" style="cursor:help;"><b><sup style="margin:0 -6px 0 -6px;">&nbsp;*)&nbsp;</sup></b></a>');
}
}

/*function SsylPozPrc() не используется после 4.08.09
{
if(isIE)
{
document.write('<div align=left id=refcrm style="position:absolute;left:0;top:1100; z-index:4;margin:0;margin-bottom:-55;width: 290px; height: 76px;;display:none;"> ');
}
else{
document.write('<div align=left id=refcrm style="position:absolute;left:300;top:1140;z-index:4;margin:0;width: 290px; height: 76px;display:none;"> ');
}
}*/
/******** Открытие/закрытие popUpWindow при закрытии - вызывающего. Исходный код - см. winclose.js 
Введено здесь из-за конфликта со скриптами из yellow_podval.
файлы loyality.html и crm.shtml
*/
var refwindow=null;

/******* w - width,px; h - height,px */
function sm_windowWH(wnm,w,h)
{ 
wdth=w;
hght=h;
refwindow=window.open('','test','menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width='+wdth+',height='+hght+',top=0,left=0');
refwindow.location=wnm;
refwindow.focus();
}

/* Закрытие popUpWindow при закрытии - вызывающего. Вызов в <body> теле открывающего файла по onUnload*/

function finlClose(){
		if(refwindow != null)
			{
			refwindow.close();
			refwindow=null;
			return true;
			}
}
/********************** crm.shtml дата создания после 4.08.09*/
/********************** То же для картинки  */
function sm_windowWHnw(wnmm,w,h)
{ 
wdth=w;
hght=h;
newWindow=window.open('','testTwo','menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width='+wdth+',height='+hght+',top=0,left=0');
newWindow.location=wnmm;
newWindow.focus();
}


function finalCloseNw()
{
		if(newWindow != null)
			{
			newWindow.close();
			newWindow=null;
			return true;
			}
}
/********************** Межбраузерное соответствие. Позиционир.  1 скрытого абзаца для IE****/
/************** св-во: margin; d,e - id блоков;bt,tp - значение (px)  marginBottom и marginTop
для 1 и 2 блоков, соответственно *******/

function IE_HdBlksRng(d,e,bt,tp)
{
mb=bt;
mt=tp;

if(isIE)
{
rngBlk1=document.getElementById(d);
rngBlk1.style.marginBottom=mb+'px';
rngBlk2=document.getElementById(e);
rngBlk2.style.marginTop=mt+'px';
}
}
// -->