﻿
n6=(document.getElementById&&!document.all);
n4=(document.layers);
ie=(document.all);
d=(n4||ie)?'document.':'document.getElementById("';
a=(n4||n6)?'':'all.';
n6r=(n6)?'")':'';
s=(n4)?'':'.style';
browser="";
if (navigator.appName.indexOf("Microsoft") != -1)
{
    browser="ie";
}

if (navigator.appName.indexOf("Netscape") != -1)
{
    browser="net";
}

function ietruebody(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var http_request = false;
var Get_http_response;

function new_xmlhttp()
{
    if (window.XMLHttpRequest) 
    { // Mozilla, Safari,...
        http_request = new XMLHttpRequest();
        if (http_request.overrideMimeType) {http_request.overrideMimeType('text/xml');}
    }
    else 
        if (window.ActiveXObject) 
        { // IE
            try 
                {http_request = new ActiveXObject("Msxml2.XMLHTTP");} 
            catch (e) 
            {
                try 
                    {http_request = new ActiveXObject("Microsoft.XMLHTTP");} 
                catch (e) {}
            }
        }
        if (!http_request) {alert("Cannot create an XMLHTTP instance");return false;}
    return http_request;
}

function createVals(f)
{
    var oF = document.getElementById(f);
    var eL = oF.elements;
      
    var ts = "";
    var rs = "";
    var vA = new Array();
     
    for (var lL=0;lL < oF.length;lL++)
    {
        try {
            if((eL[lL].name!="__LASTFOCUS")&&(eL[lL].name!="__VIEWSTATE")&&(eL[lL].name!="__EVENTTARGET")&&(eL[lL].name!="__EVENTARGUMENT")&&(eL[lL].name!="__EVENTVALIDATION"))
            {
           
                if((eL[lL].type=="text") || (eL[lL].type=="hidden") || (eL[lL].type=="password") || (eL[lL].type=="textarea") || (eL[lL].type=="select-one") || (eL[lL].type=="radio") || (eL[lL].type=="checkbox") ) 
                {
                    if ((eL[lL].type=="select-one"))
                    {
                        var c = eL[lL].options[eL[lL].selectedIndex].text;
                        var n = eL[lL].name + "_TEXT"; 
                        ts = escape(n)+"="+escape(c.replace(/%2B/g,"%u002B")); 
                        vA.push(ts);
                        var c = eL[lL].value;
                        var n = eL[lL].name;
                        ts = escape(n)+"="+escape(c.replace(/%2B/g,"%u002B"));
                        vA.push(ts);
                    }
                    else
                    {
                    if (eL[lL].type=='radio' ){
                        if (eL[lL].checked==true)
                        {
                            var c = eL[lL].value;
                            var n = eL[lL].name;
                            ts = escape(n)+"="+escape(c.replace(/%2B/g,"%u002B")); 
                            vA.push(ts);
                        }
                    }
                    else
                    {
                        if (eL[lL].type=='checkbox' ){
                            if (eL[lL].checked==true)
                            {
                                var c = eL[lL].value;
                                var n = eL[lL].name;
                                ts = escape(n)+"="+escape(c.replace(/%2B/g,"%u002B")); 
                                vA.push(ts);}
                            }
                            else
                            {
                                var c = eL[lL].value;
                                var n = eL[lL].name;
                                ts = escape(n)+"="+escape(c.replace(/%2B/g,"%u002B")); 
                                vA.push(ts);
                            }
                        }
                    }
                }
            }
        }catch(e){} 
    }
    if (vA.length>0){rs=vA.join("&");}
    return rs;
}

////////////////////////////////////////////////////////////

function post(formId,spanId,url)
{
    if (spanId!='null'){document.getElementById(spanId).innerHTML = '<div align="center" ><table height="100%" border="0" cellpadding="0" cellspacing="0" ><tr><td valign="middle"><img src="images/loading.gif" ></tr></table></div>'}
    else
    {
        var span = document.getElementById(spanId);}
   
    	var xmlhttp = new_xmlhttp();
	    xmlhttp.abort();
	
	    var postRequest = new String("");
	    xmlhttp.open("POST",url,true);
	    if (formId!='null')
	    {
	        xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-9");
	        xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;language=tr");
	        postRequest=createVals(formId);
	        xmlhttp.send(postRequest);
        }
        else{xmlhttp.send(null)}
    
   return xmlhttp;
 }

////////////////////////////////////////////
//frameName,frameID,pageURL,W,H
//createWindow("testPage", "Test Sayfası", w,200, 100);

function createWindow(frameID,windowTitle,windowURL,windowWidth,windowHeight,visibility)
{
    var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20;
    var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20;
    if (!document.getElementById("modal")) {
        var div = document.body.appendChild(document.createElement("DIV"));
        div.className = "modalContainer";
        div.style.visibility = "hidden";
        div.id = "windowContainer";
        div.style.left=Math.round((parseInt(winwidth)-parseInt(windowWidth))/2)+"px";
        div.style.top=Math.round((parseInt(winheight)-parseInt(windowHeight))/2)+"px";
        var div = document.body.appendChild(document.createElement("DIV"));
        div.className = "modal";
        div.style.visibility = "visible";
        div.style.position = "absolute";
        div.style.width="100%";
        div.style.height=winheight;
        div.id = "modal";
      
    }

    document.getElementById("windowContainer").innerHTML=""; 
    document.getElementById("windowContainer").style.width=windowWidth;
    document.getElementById("windowContainer").style.height=windowHeight;
    //if (windowTitle==undefined){windowTitle="";}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            //name=\"iframe2\" id=\"ifame2\" width=\"550\" height=\"520\" "
    //nesedocument.getElementById("windowContainer").innerHTML="<div><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td align='left'width='99%'><b></b></td><td width='1%'><img src='images/close.gif' onClick='closeWindow()'  onmouseover='this.style.cursor=\"hand\"'/></td></tr></table></div><hr><div id='frameLoading' style='background-color: #FFFFFF;height="+(windowHeight-36)+"' align='center'><br><img src='images/loading.gif' /></div><div  style='background-color: #FFFFFF;height="+(windowHeight-36)+"' id='frameContainer' ><iframe name='"+frameID+"' frameborder=\"0\" id='"+frameID+"' scrolling=\"no\" style=\"overflow-x : hidden;\" width='" +windowWidth + "' height='" +windowHeight + "' src='"+windowURL+"'></div>"
    document.getElementById("windowContainer").innerHTML="<div style=\"width: 550px !important\" class=\"modalPopup2\"><div class=\"mpTitle\">" + 
                                                            "<table width=\"100%\" class=\"modalTitle\"><tr><td>" +
                                                                "<div id=\"popTitle\" style=\"font-family : Arial, Helvetica, sans-serif; font-weight : bold; font-size:14px;\">" + windowTitle + "</div>" + 
                                                                "</td><td><a href=\"Javascript:closeWindow()\"><img src=\"styles/images/close.gif\" alt=\"Kapat\" class=\"mpClose\" /></a></td></tr></table><hr />" +
                                                            "<iframe name='"+frameID+"' frameborder=\"0\" id='"+frameID+"' scrolling=\"no\" style=\"overflow-x : hidden;\" width='" +windowWidth + "' height='" +windowHeight + "' src='"+windowURL+"'></iframe>" + 
                                                            "</div></div>"
                                                            
    //document.getElementById("frameContainer").style.display = "none";
    if (browser=="" || browser=="ie")
    {
        //frames[frameID].onload= function() {
        //--document.getElementById(frameID).src=windowURL;
        //document.getElementById("frameLoading").style.display = "none";
        //document.getElementById("frameContainer").style.display = "block";
        //}
    }

    if (browser=="net")
    {
        document.getElementById(frameID).onload= function() {
        //document.getElementById("frameLoading").style.display = "none";
        //document.getElementById("frameContainer").style.display = "block";
        }
    }
    
      document.getElementById("windowContainer").style.visibility=visibility;
      document.getElementById("modal").style.visibility="visible";

    //document.getElementById("frm-"+windowName).onload= function() {
    //document.getElementById("frameLoading").style.display = "none";
    //document.getElementById("frameContainer").style.display = "block";}
}





function createWindow2(frameID,windowTitle,windowURL,windowWidth,windowHeight,visibility)
{
    var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20;
    var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20;
    if (!document.getElementById("modal")) {
        var div = document.body.appendChild(document.createElement("DIV"));
        div.className = "modalContainer";
        div.style.visibility = "hidden";
        div.style.display = "none";
        
        div.id = "windowContainer";
        //nesediv.style.left=Math.round((parseInt(winwidth)-parseInt(windowWidth))/2)+"px";
        //nesediv.style.top=Math.round((parseInt(winheight)-parseInt(windowHeight))/2)+"px";
        var div = document.body.appendChild(document.createElement("DIV"));
        div.className = "modal";
        div.style.visibility = "visible";
        div.style.position = "absolute";
        div.style.width="100%";
        div.style.height=winheight;
        div.id = "modal";
      
    }

    document.getElementById("windowContainer").innerHTML=""; 
    //nesedocument.getElementById("windowContainer").style.width=windowWidth;
    //nesedocument.getElementById("windowContainer").style.height=windowHeight;
    //if (windowTitle==undefined){windowTitle="";}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            //name=\"iframe2\" id=\"ifame2\" width=\"550\" height=\"520\" "
    //document.getElementById("windowContainer").innerHTML="<div><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td align='left'width='99%'><b></b></td><td width='1%'><img src='images/close.gif' onClick='closeWindow()'  onmouseover='this.style.cursor=\"hand\"'/></td></tr></table></div><hr><div id='frameLoading' style='background-color: #FFFFFF;height="+(windowHeight-36)+"' align='center'><br><img src='images/loading.gif' /></div><div  style='background-color: #FFFFFF;height="+(windowHeight-36)+"' id='frameContainer' ><iframe name='"+frameID+"' frameborder=\"0\" id='"+frameID+"' scrolling=\"no\" style=\"overflow-x : hidden;\" width='" +windowWidth + "' height='" +windowHeight + "' src='"+windowURL+"'></div>"
    document.getElementById("windowContainer").innerHTML="<div style=\"width: 100px !important\" class=\"modalPopup2\"><div class=\"mpTitle\">" + 
                                                            "<table width=\"100%\" class=\"modalTitle\"><tr><td>" +
                                                                "<div id=\"popTitle\" style=\"font-family : Arial, Helvetica, sans-serif; font-weight : bold; font-size:14px;\">" + windowTitle + "</div>" + 
                                                                "</td><td><a href=\"Javascript:closeWindow()\"><img src=\"styles/images/close.gif\" alt=\"Kapat\" class=\"mpClose\" /></a></td></tr></table><hr />" +
                                                            "<iframe name='"+frameID+"' frameborder=\"0\" id='"+frameID+"' scrolling=\"no\" style=\"overflow-x : hidden;\" width='" +100 + "' height='" +100 + "' src='"+windowURL+"'></iframe>" + 
                                                            "</div></div>"
                                                            
   

    
  document.getElementById("windowContainer").style.visibility=visibility;
  document.getElementById("windowContainer").style.display='none';
  document.getElementById("modal").style.visibility="hidden";
  document.getElementById("modal").style.display="none";

 
}

function closeWindow()
{
    //try{foObj.focus();}
    //catch(e){};
    document.getElementById("windowContainer").innerHTML="";    
    document.getElementById("modal").style.visibility="hidden";
    //document.getElementById("windowContainer").style.visibility="hidden";
}


var xmlCom;
var timerId;
var divAjax;
var objDiv;
function MakeRequest() {
      xmlCom = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         xmlCom = new XMLHttpRequest();
         if (xmlCom.overrideMimeType) {
            xmlCom.overrideMimeType('text/xml');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            xmlCom = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               xmlCom = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!xmlCom) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      
      return true;
      
   }	
   /*
    function LoadAge18x()
    {
    debugger;
    alert('deneme');
    //    Loader('show','divAge18',200,200);
    
    }*/
    
    function LoadProduct(url,divAjaxT) 
    {  if(document.getElementById(divAjaxT).innerHTML != "")        
          return;
          //debugger;
        var nDate = new Date(); 
        var stamp = nDate.getTime();
        var file=""; 
        divAjax=divAjaxT;
        Loader('show','loaderbox',175,0);
        //document.getElementById(divAjax).innerHTML="<div align=center  style=\"padding-left:300px;\"><img src='images/load2.gif' /><br /><br /><strong>Lütfen Bekleyiniz !!!</strong></div>";    
        if(!MakeRequest()) return;    
        
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = Control;                  
        xmlCom.open('GET', file, true);
        //setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
        xmlCom.send(null);
    }
    
    function Control()
    {
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  
			    clearInterval(timerId);				        
 		        document.getElementById(divAjax).innerHTML=xmlCom.responseText;    
 		        Loader('hide','loaderbox',175,0);
            }else
			{Loader('hide','loaderbox',175,0);
			    alert('There was a problem with the request.');
			    
			}
			   			  
	    }		  	
	}
    
    function LoadProduct2(url,objDivT) 
    {         
        var nDate = new Date(); 
        var stamp = nDate.getTime();
       var file=""; 
        objDiv=objDivT;
        //document.getElementById(divAjax).innerHTML="<div align=center  style=\"padding-left:300px;\"><img src='images/load2.gif' /><br /><br /><strong>Lütfen Bekleyiniz !!!</strong></div>";    
        if(!MakeRequest()) return;    
        
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = Control2;                  
        xmlCom.open('GET', file, true);
        //setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
        xmlCom.send(null);
    }
    
    function Control2(){
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  
			    clearInterval(timerId);	
			    if(objDiv) {
			    objDiv.innerHTML=xmlCom.responseText;     
			    ClickAccordion(null,0);}
//			    document.getElementById(divAjax).title = "ok";
            }else
			{
			    alert('There was a problem with the request.');
			}
			   			  
	    }		  	
	}
	
	
    function Loader(showhide,objID,w,h)
    {
        if(showhide =='show')
        {
           sm(objID,w,h);           
        }else
        {
            hm(objID);
        }
        HideAllSelect(objID);
    }
    
    function LoadLocation(url,divAjaxT)
    {
        var _CityID = 0;
        try{_CityID=document.getElementById('LocCityID').value;}catch(e){}
        
        var nDate = new Date(); 
        var stamp = nDate.getTime();
        var file=""; 
        divAjax=divAjaxT;  
        if(_CityID >0)  
        {   
            Loader('show','mbd',333,240);     
            return;
        }      
        Loader('show','loaderbox',175,0);           
             
        if(!MakeRequest()) return;            
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = Control3;                  
        xmlCom.open('GET', file, true);
        
        xmlCom.send(null);
    }   
    
	
	
	function Control3(){
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  //debugger;
			    clearInterval(timerId);				        
 		        document.getElementById(divAjax).innerHTML=xmlCom.responseText;           
 		        Loader('hide','loaderbox',175,0);
 		        Loader('show','locationbox',333,240);
 		        
 		        
 		        
            }else
			{   Loader('hide','loaderbox',175,0);
			    alert('There was a problem with the request.');
			    
			}
			   			  
	    }		  	
	}
	
	
	function LoadLocation2(url,divAjaxT)
    {
        var nDate = new Date(); 
        var stamp = nDate.getTime();
        var file=""; 
        divAjax=divAjaxT;        
        //Loader('show','loaderbox',32,32);
        if(!MakeRequest()) return;    
        
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = Control4;                  
        xmlCom.open('GET', file, true);
        
        xmlCom.send(null);
    }   
    	
	function Control4(){
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  //debugger;
			    clearInterval(timerId);		
			    if(xmlCom.responseText == 'ok')       
			    {
			        document.location='suppliers.aspx';
			        return;
			        //alert();		        
			    }
			        
 		        document.getElementById(divAjax).innerHTML=xmlCom.responseText;    
 		        
// 		        Loader('hide','loaderbox',32,32);
// 		        Loader('show','locationbox',200,250);
 		        
 		        
 		        
            }else
			{   
//			    Loader('hide','loaderbox',32,32);
			    alert('There was a problem with the request.');
			    
			}
			   			  
	    }		  	
	}
	
	
	
	
	function LoadMulti(url,divAjaxT,objvalue)
    {
        var nDate = new Date(); 
        var stamp = nDate.getTime();
        var file=""; 
        divAjax=divAjaxT;  
    //Mustafa Tarafından İptal edildi. 20/04/2009
        kapat=objvalue;
      //  Loader('show','loaderbox',175,0);           
             
        if(!MakeRequest()) return;            
        file=url + "&time="+stamp;
        
       
        
        xmlCom.onreadystatechange = Control5;                  
        xmlCom.open('GET', file, true);
        xmlCom.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
        xmlCom.send(null);
    }   
	function Control5(){
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  //debugger;
			    clearInterval(timerId);
			    
			    if(kapat=='1')
			    {
			   // alert('geldi');
			  //  document.getElementById('MultiCancel').click();
			  document.getElementById('dOdemeTipi').style.display='';
			  Loader('hide','popupop',100,100);
			    }	
			    else
			    {	        
 		        document.getElementById(divAjax).innerHTML=xmlCom.responseText;           
 		      //  Loader('hide','loaderbox',175,0);
 		        Loader('show','popupop',420,250);
 		        }
 		        
 		        
            }else
			{  // Loader('hide','loaderbox',175,0);
			    alert('There was a problem with the request.');
			    
			}
			   			  
	    }		  	
	}
	
	function LoadPopup(url,divAjaxT)
    {
        var nDate = new Date(); 
        var stamp = nDate.getTime();
        var file=""; 
        divAjax=divAjaxT;  

        Loader('show','loaderbox',175,0);           
             
        if(!MakeRequest()) return;            
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = Control6;                  
        xmlCom.open('GET', file, true);
        
        xmlCom.send(null);
    }   

	function Control6()
	{
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  //debugger;
			    clearInterval(timerId);				        
 		        document.getElementById(divAjax).innerHTML=xmlCom.responseText;           
 		        Loader('hide','loaderbox',175,0);
 		        Loader('show','popupop',590,325);
 		        
 		        
 		        
            }else
			{   Loader('hide','loaderbox',175,0);
			    alert('There was a problem with the request.');
			    
			}
			   			  
	    }		  	
	}
	
	
	
	function LoadReklam(url,divAjaxT)
    {
    
        var nDate = new Date(); 
        var stamp = nDate.getTime();
        var file=""; 
        divAjax=divAjaxT;  

        //Loader('show','loaderbox',175,0);           
             
        if(!MakeRequest()) return;            
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = Control7;                  
        xmlCom.open('GET', file, true);
        
        xmlCom.send(null);
    }   

	function Control7()
	{
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  //debugger;
			    clearInterval(timerId);				        
 		        document.getElementById('divReklam').innerHTML=xmlCom.responseText;           
// 		        Loader('hide','loaderbox',175,0);
 		        Loader('show','divReklam',590,325);
 		        
 		        
 		        
            }else
			{   //Loader('hide','loaderbox',175,0);
			    alert('There was a problem with the request.');
			    
			}
			   			  
	    }		  	
	}	
	
	
	
	
	
	
    function LoadFavori(url) 
    {
        var nDate = new Date(); 
        var stamp = nDate.getTime();
       var file=""; 
      // objDiv=objDivT;
        
        //document.getElementById(divAjax).innerHTML="<div align=center  style=\"padding-left:300px;\"><img src='images/load2.gif' /><br /><br /><strong>Lütfen Bekleyiniz !!!</strong></div>";    
        if(!MakeRequest()) return;    
        
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = ControlFavori;                  
        xmlCom.open('GET', file, true);
        //setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
        xmlCom.send(null);
    }
    
    
        function ControlFavori(){
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  
			    clearInterval(timerId);	
			
			document.getElementById('MasterAdisyonFavori').innerHTML=xmlCom.responseText;
			 //   objDiv.innerHTML=xmlCom.responseText;     
			    ClickAccordion(null,0);
//			    document.getElementById(divAjax).title = "ok";
            }else
			{
			    alert('There was a problem with the request.');
			}
			   			  
	    }		  	
	}	
	
	
	var g_PopupIFrame=null;
function getIEVersionNumber() {
      var browser=navigator.appName;
      var b_version=navigator.appVersion;
      var version=parseFloat(b_version);
      var ua = navigator.userAgent;
      var MSIEOffset = ua.indexOf('MSIE ');
      if(browser=='Microsoft Internet Explorer')
      {

                  if (MSIEOffset == -1) 

                  {

                              return version

                  } else {

                              return parseFloat(ua.substring(MSIEOffset + 5, ua.indexOf(';', MSIEOffset)));

                  }

      }

      else return 11;
}

function HideAllSelect(hza)

{//listboxlar div'in üstünde gözüküyordu
hza=document.getElementById(hza)
var vers=getIEVersionNumber();
if(vers<=6 && vers>0)
{
      if(hza.style.visibility=='visible')
      {
                  hza.style.zIndex=hza.style.zIndex+1;
                  var iFrame =null;
                  if(g_PopupIFrame!=null)
                    iFrame=g_PopupIFrame;
                  else
                   iFrame=document.createElement('IFRAME');
                 
                  iFrame.setAttribute('src', '');
                  iFrame.style.position='absolute';
                  iFrame.style.left =hza.offsetLeft + 'px';
                  iFrame.style.top =hza.offsetTop + 'px';
                  iFrame.style.width =hza.offsetWidth + 'px';
                  iFrame.style.height =hza.offsetHeight + 'px';                                                                                                     
                  document.body.appendChild(iFrame);
                  g_PopupIFrame=iFrame;

      }
      else
      {
                if(g_PopupIFrame!=null)
                  document.body.removeChild(g_PopupIFrame);
                  g_PopupIFrame=null;
      }                                                                                             
}
}


	function LoadBkAdres(url,divAjaxT)
    {
    
        var nDate = new Date(); 
        var stamp = nDate.getTime();
        var file=""; 
        divAjax=divAjaxT;  

        //Loader('show','loaderbox',175,0);           
             
        if(!MakeRequest()) return;            
        file=url + "&time="+stamp;
        
        xmlCom.onreadystatechange = Control8;                  
        xmlCom.open('GET', file, true);
        
        xmlCom.send(null);
    }   

	function Control8()
	{
        if(xmlCom.readyState==4)
		{
		    if (xmlCom.status == 200)
			{  //debugger;
			    clearInterval(timerId);				        
 		        document.getElementById('popupop2').innerHTML=xmlCom.responseText;           
// 		        Loader('hide','loaderbox',175,0);
 		        Loader('show','popupop2',350,500);
 		        
 		        
 		        
            }else
			{   //Loader('hide','loaderbox',175,0);
			    alert('There was a problem with the request.');
			    
			}
			   			  
	    }		  	
	}	
