﻿var place;var timeoutID=0;function display_menu(d,a){document.getElementById("Navigationbar_Right").className="Navigationbar_Right_Over";var b=document.getElementById(a);b.style.visibility="visible";b.style.display="block";var c=findPos(d);b.style.top=c[0]+"px"}function display(){document.getElementById("Navigationbar_Right").className="Navigationbar_Right_Over";var a=document.getElementById("AllProductDIV");a.style.visibility="visible";a.style.display="block";a.style.top=place+"px"}function hide_menuExpand(a){clearTimeout(timeoutID);document.getElementById("Navigationbar_Right").className="tdNavigationbar_Right";var b=document.getElementById(a);b.style.display="none"}function findPos(a){var b=curtop=0;if(a.offsetParent){curtop=a.offsetTop+27;while(a=a.offsetParent){curtop+=a.offsetTop}}place=curtop;return[curtop]}var place_En;function display_menu_En(d,a){document.getElementById("Navigationbar_Left_En").className="Navigationbar_Left_En_Over";var b=document.getElementById(a);b.style.visibility="visible";b.style.display="block";var c=findPos_En(d);b.style.top=c[0]+"px"}function display_En(){document.getElementById("Navigationbar_Left_En").className="Navigationbar_Left_En_Over";var a=document.getElementById("AllProductDIV");a.style.visibility="visible";a.style.display="block";a.style.top=place_En+"px"}function hide_menu_En(a){clearTimeout(timeoutID);document.getElementById("Navigationbar_Left_En").className="tdNavigationbar_Left_En";var b=document.getElementById(a);b.style.display="none"}function findPos_En(a){var b=curtop=0;if(a.offsetParent){curtop=a.offsetTop+27;while(a=a.offsetParent){curtop+=a.offsetTop}}place_En=curtop;return[curtop]}var bo_ns_id=0;function startIeFix(){if(isIE()){document.write('<div id="bo_ns_id_'+bo_ns_id+'"><!-- ')}}function endIeFix(){if(isIE()){document.write("</div>");var a=document.getElementById("bo_ns_id_"+bo_ns_id++);var b=a.innerHTML;b=b.substring(4,9+b.indexOf("</object>"));document.write(b)}}function isIE(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("msie")>-1&&a.indexOf("mac")<0){if(parseInt(a.charAt(a.indexOf("msie")+5))<6){return false}if(a.indexOf("win98")>-1||a.indexOf("win 9x 4.90")>-1||a.indexOf("winnt4.0")>-1||a.indexOf("windows nt 5.0")>-1){return false}return true}else{return false}}function display_Tooltip(d,a,f,e){var b=document.getElementById(a);b.style.visibility="visible";b.style.display="block";var c=findPos_Parent(d,f,e);b.style.left=c[0]+"px";b.style.top=c[1]+"px"}function findPos_Parent(c,b,a){var d=curtop=0;if(c.offsetParent){d=c.offsetLeft+b;curtop=c.offsetTop+a;while(c=c.offsetParent){d+=c.offsetLeft;curtop+=c.offsetTop}}return[d,curtop]}function hide_menu(a){var b=document.getElementById(a);b.style.display="none"}function Limit(a){if(a.value.length>1024){return false}return true}function Count(b,a){objCnt=createObject(a);objVal=b.value;if(objVal.length>1024){objVal=objVal.substring(0,1024);b.value=objVal}if(objCnt){if(navigator.appName=="Netscape"){objCnt.textContent=1024-objVal.length}else{objCnt.innerText=1024-objVal.length}}return true}function LimitTitle(a){if(a.value.length>40){return false}return true}function CountTitle(b,a){objCnt=createObject(a);objVal=b.value;if(objVal.length>40){objVal=objVal.substring(0,40);b.value=objVal}if(objCnt){if(navigator.appName=="Netscape"){objCnt.textContent=40-objVal.length}else{objCnt.innerText=40-objVal.length}}return true}function LimitBody(a){if(a.value.length>500){return false}return true}function CountBody(b,a){objCnt=createObject(a);objVal=b.value;if(objVal.length>500){objVal=objVal.substring(0,500);b.value=objVal}if(objCnt){if(navigator.appName=="Netscape"){objCnt.textContent=500-objVal.length}else{objCnt.innerText=500-objVal.length}}return true}function createObject(objId){if(document.getElementById){return document.getElementById(objId)}else{if(document.layers){return eval("document."+objId)}else{if(document.all){return eval("document.all."+objId)}else{return eval("document."+objId)}}}}function openwindow_MarkazMap(){window.open("Maps/Markaz.htm","jav","width=450,height=400,resizable=yes")}function openwindow_SanayeMap(){window.open("Maps/Sanaye.htm","jav","width=450,height=400,resizable=yes")}function openwindow_MarkazMap_En(){window.open("../Maps/Markaz_En.htm","jav","width=450,height=400,resizable=yes")}function openwindow_SanayeMap_En(){window.open("../Maps/Sanaye_En.htm","jav","width=450,height=400,resizable=yes")}function openwindow_KhadamatMap_En(){window.open("../Maps/Khadamat_En.htm","jav","width=450,height=400,resizable=yes")}function openwindow_FinanceMap(){window.open('../Maps/Finance.htm','jav','width=450,height=400,resizable=yes, status=yes'); }function openwindow_FinanceMap_En() { window.open('../../Maps/Finance_En.htm','jav','width=450,height=400,resizable=yes, status=yes'); } function confirm_delete(){if(confirm("آيا نسبت به عمل حذف مطمئن مي باشيد؟")==true){return true}else{return false}}function onMouseOver_Send(){document.getElementById("ctl00_MainContent_Left_btnSend").src="Images/Send-Button-Over.gif"}function onMouseOut_Send(){document.getElementById("ctl00_MainContent_Left_btnSend").src="Images/Send-Button.gif"}function onMouseOver_Next(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnNext").src="Images/Product_LargBox/NextOver-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnNext").src="Images/Product_LargBox/NextOver-Button.gif"}function onMouseOut_Next(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnNext").src="Images/Product_LargBox/Next-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnNext").src="Images/Product_LargBox/Next-Button.gif"}function onMouseOver_Back(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnBack").src="Images/Product_LargBox/BackOver-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnBack").src="Images/Product_LargBox/BackOver-Button.gif"}function onMouseOut_Back(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnBack").src="Images/Product_LargBox/Back-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnBack").src="Images/Product_LargBox/Back-Button.gif"}function onMouseOver_Return(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnReturn").src="Images/Product_LargBox/ReturnOver-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnReturn").src="Images/Product_LargBox/ReturnOver-Button.gif"}function onMouseOut_Return(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnReturn").src="Images/Product_LargBox/Return-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnReturn").src="Images/Product_LargBox/Return-Button.gif"}function onMouseOver_Return(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnReturn").src="Images/Product_LargBox/ReturnOver-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnReturn").src="Images/Product_LargBox/ReturnOver-Button.gif"}function onMouseOut_Return(){document.getElementById("ctl00_MainContent_Left_ProductImage1_btnReturn").src="Images/Product_LargBox/Return-Button.gif";document.getElementById("ctl00_MainContent_Left_NewsImage2_btnReturn").src="Images/Product_LargBox/Return-Button.gif"}function limitCompare(){alert("كاربر گرامي، شما حداكثر مجاز به انتخاب سه كالا هستيد")}function NoProductIsSelectedToCompare(){alert("كاربر گرامي، جهت مقايسه اين كالا حداكثر دو كالاي ديگر را انتخاب نمائيد")};

