OtzyvBookINGRS = function() { var siteserver = "http://ingris.ru/widget"; var isIE = window.navigator.userAgent.indexOf("MSIE")>-1; var GlassWindow=null; var Dialog=null; var ua = window.navigator.userAgent.toLowerCase(); var isOpera = (ua.indexOf("opera") > -1); var isIE = (!isOpera && ua.indexOf("msie") > -1); this.getDocumentHeight = function() { return Math.max(document.compatMode != "CSS1Compat" ? document.body.scrollHeight : document.documentElement.scrollHeight, this.getViewportHeight()); } this.getViewportHeight = function() { return ((document.compatMode || isIE) && !isOpera) ? (document.compatMode == "CSS1Compat") ? document.documentElement.clientHeight : document.body.clientHeight : (document.parentWindow || document.defaultView).innerHeight; } this.getClientHeight = function() { return document.compatMode=="CSS1Compat" && !window.opera?document.documentElement.clientHeight:document.body.clientHeight; } this.getStyleObject = function(objectId) { if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId).style; } else if (document.all && document.all(objectId)) { return document.all(objectId).style; } else if (document.layers && document.layers[objectId]) { return document.layers[objectId]; } else { return false; } } this.moveingrdiv = function(end) { if (end=="0") { document.getElementById("blockdivINGRSsee").style.display="block"; document.getElementById("blockdivINGRS").style.display="none"; } if (end=="1") { document.getElementById("blockdivINGRS").style.display="block"; document.getElementById("blockdivINGRSsee").style.display="none"; } } this.showingrdiv = function(end) { if (end=="0") { document.getElementById("blockdivINGRS").style.display="none"; } if (end=="1") { obOtzyvBookINGRS.ShowGlassWindow(true); document.getElementById("blockdivINGRS").style.display="block"; } } this.closepanel = function() { document.getElementById("blockdivINGRS").style.display="none"; obOtzyvBookINGRS.ShowGlassWindow(false); } this.hideseeingrdiv = function() { document.getElementById("blockdivINGRSsee").style.display="none"; document.getElementById("sidewidg").style.display="none"; document.getElementById("packing").style.display="none"; document.getElementById("reqpictxt").style.display="none"; document.getElementById("sidewidgfaq").style.display="none"; document.getElementById("gifffaq").style.display="none"; document.getElementById("faqpictxt").style.display="none"; } this.f_ingrmgwiwidth = function() { var myWidth = (document.body.scrollWidth > document.body.offsetWidth)?document.body.scrollWidth:document.body.offsetWidth; return myWidth; } this.f_ingrmshowboxrf = function(t) { obOtzyvBookINGRS.ShowGlassWindow(true); obOtzyvBookINGRS.moveingrdiv(0); if (t=="jaloba") { document.forms["formotz_j"].ingrsinpfio.value=""; document.forms["formotz_j"].ingrsinpemail.value=""; document.forms["formotz_j"].ingrsinpotzyvhead.value=""; document.forms["formotz_j"].ingrsinpotzyvtext.value=""; document.forms["formotz_j"].ingrsinpaddtext.value=""; document.getElementById("obOtzyvBookINGRS_box_jaloba").style.display="block"; } if (t=="odobren") { document.forms["formotz_o"].ingrsinpfio.value=""; document.forms["formotz_o"].ingrsinpemail.value=""; document.forms["formotz_o"].ingrsinpotzyvhead.value=""; document.forms["formotz_o"].ingrsinpotzyvtext.value=""; document.forms["formotz_o"].ingrsinpaddtext.value=""; document.getElementById("obOtzyvBookINGRS_box_odobren").style.display="block"; } if (t=="sovet") { document.forms["formotz_s"].ingrsinpfio.value=""; document.forms["formotz_s"].ingrsinpemail.value=""; document.forms["formotz_s"].ingrsinpotzyvhead.value=""; document.forms["formotz_s"].ingrsinpotzyvtext.value=""; document.forms["formotz_s"].ingrsinpaddtext.value=""; document.getElementById("obOtzyvBookINGRS_box_sovet").style.display="block"; } } this.f_inghidbox = function(t) { if (t=="jaloba") { document.getElementById("obOtzyvBookINGRS_box_jaloba").style.display="none"; } if (t=="odobren") { document.getElementById("obOtzyvBookINGRS_box_odobren").style.display="none"; } if (t=="sovet") { document.getElementById("obOtzyvBookINGRS_box_sovet").style.display="none"; } obOtzyvBookINGRS.ShowGlassWindow(false); } this.ShowGlassWindow = function(show){ if(GlassWindow==null){ GlassWindow=document.createElement("DIV"); with(GlassWindow.style){ display="none"; position="absolute"; height=0; width=0; zIndex=1002; if(isIE){ backgroundColor = "#000000"; filter="progid:DXImageTransform.Microsoft.Alpha(Opacity=60, Style=0)"; } else { backgroundImage = "url(http://ingris.ru/widget/images/widget/alfafon.png)"; } } document.body.appendChild(GlassWindow); } if(show){ with(GlassWindow.style){ left = top = 0; var l = this.f_ingrmgwiwidth(); var t = this.getDocumentHeight(); width = l+"px"; height = t+"px"; } } GlassWindow.style.display=show?"block":"none"; } this.f_ingrscssshow = function() { document.write(""); } this.f_ingrchkfieldqq = function(name) { if((document.forms[name].ingrsinpfio.value=="")|| (document.forms[name].ingrsinpemail.value=="")|| (document.forms[name].ingrsinpotzyvhead.value=="")|| (document.forms[name].ingrsinpotzyvtext.value=="")) { window.alert("Не обязательные поля заполнены!"); return false; } else { if (name=="formotz_j") { obOtzyvBookINGRS.f_inghidbox("jaloba"); } if (name=="formotz_o") { obOtzyvBookINGRS.f_inghidbox("odobren"); } if (name=="formotz_s") { obOtzyvBookINGRS.f_inghidbox("sovet"); } return true; } } this.ingrsshowfeedback = function(){this.f_ingrscssshow(); document.write("
x
\"\"
"); document.write("
\"\"
"); document.write("
"); document.write(""); document.write("
»» установить на свой сайт
Жалоба
Тема отзыва:* (до 200 символов)
Текст отзыва:* (до 1000 символов)
Ваше имя:*
Ваш e-mail:*
Дополнительная информация о Вас:

* - обязательные для заполнения поля
Нам дорог Ваш отзыв. Каждое Ваше замечание придёт на почту нашего руководства. »» Смотреть все отзывы
"); document.write("
"); document.write("
"); document.write("
»» установить на свой сайт
Благодарность
Тема отзыва:* (до 200 символов)
Текст отзыва:* (до 1000 символов)
Ваше имя:*
Ваш e-mail:*
Дополнительная информация о Вас:

* - обязательные для заполнения поля
Нам дорог Ваш отзыв. Каждое Ваше замечание придёт на почту нашего руководства. »» Смотреть все отзывы
"); document.write("
"); document.write("
"); document.write(""); document.write(""); document.write("
»» установить на свой сайт
Совет, предложение
Тема отзыва:* (до 200 символов)
Текст отзыва:* (до 1000 символов)
Ваше имя:*
Ваш e-mail:*
Дополнительная информация о Вас:

* - обязательные для заполнения поля
Нам дорог Ваш отзыв. Каждое Ваше замечание придёт на почту нашего руководства. »» Смотреть все отзывы
"); document.write("
"); } } var obOtzyvBookINGRS = new OtzyvBookINGRS(); obOtzyvBookINGRS.ingrsshowfeedback();