﻿function LoadZoomImage(strImagePath)
{var strimageTag="<img src="+"'"+strImagePath+"'"+" Width='360' Height='194' alt=''/>";var divAccessoryCarImage=document.getElementById('divAccessoryCarImage');divAccessoryCarImage.innerHTML=strimageTag;ToggleLayer('divZoomImage');}
function AccessoriesPrintPopup(url)
{newwindow=window.open(url,'name','height=800,width=800,scrollbars=1');if(window.focus)
{newwindow.focus()}}
function Print()
{var divPrint=document.getElementById('divPrint');window.print();}
var bustcachevar=1
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
var bustcacheparameter=""
function ajaxpage(url,containerid,googleid)
{url=url.replace(/amp;/g,'');document.getElementById('imgPreLoader').style.display='block';var page_request=false
if(window.XMLHttpRequest)
page_request=new XMLHttpRequest()
else if(window.ActiveXObject)
{try
{page_request=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e)
{try
{page_request=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e)
{}}}
else
{document.getElementById('imgPreLoader').style.display='none';return false;}
page_request.onreadystatechange=function()
{loadpage(page_request,containerid,googleid)}
if(bustcachevar)
bustcacheparameter=(url.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime()
page_request.open('GET',url+bustcacheparameter,true)
page_request.send(null)}
function loadpage(page_request,containerid,googleid)
{if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1))
{try
{document.getElementById(containerid).innerHTML=page_request.responseText;CSBfleXcroll('mycustomscroll1');}
catch(e)
{document.getElementById(containerid).innerHTML="<!--"+page_request.responseText;}
document.getElementById('imgPreLoader').style.display='none';}}
function ShowGetInfo(contentId,divObject,LangType,pCode)//R1.2
{document.getElementById('imgPreLoader').style.display='block';var xmlHttp;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Your browser does not support AJAX!");document.getElementById('imgPreLoader').style.display='none';return false;}}}
xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{if(divObject!=null)
{divObject.innerHTML=xmlHttp.responseText;document.getElementById('imgPreLoader').style.display='none';ToggleLayer('divPopGetInfo')}}}
var URLString="pages/AjaxData.aspx?id="+contentId+"&accessory=1"+"&LangType="+LangType+"&pCode="+pCode+"&type=2&action=1";xmlHttp.open("GET",URLString,true);xmlHttp.send(null);}
