var xmlHttp	

function showdownload(str,type)

{

	

if (str.length==0)

  { 

 document.getElementById('download').innerHTML=""

  return

  }

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

  {

  alert ("Browser does not support HTTP Request")

  return

  } 

var url="modules/upload_file.php"

url=url+"?file="+str

url=url+"&type="+type

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanged 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

} 



function stateChanged() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById('download').innerHTML=xmlHttp.responseText 

 } 

}function GetXmlHttpObject()

{

var xmlHttp=null;

try

 {

 // Firefox, Opera 8.0+, Safari

 xmlHttp=new XMLHttpRequest();

 }

catch (e)

 {

 // Internet Explorer

 try

  {

  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

  }

 catch (e)

  {

  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;

}





function showdownload2(str,type)

{

	

if (str.length==0)

  { 

 document.getElementById('download2').innerHTML=""

  return

  }

xmlHttp=GetXmlHttpObject1()

if (xmlHttp==null)

  {

  alert ("Browser does not support HTTP Request")

  return

  } 

var url="modules/upload_file.php"

url=url+"?file="+str

url=url+"&type="+type

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanged1 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

} 



function stateChanged1() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById('download2').innerHTML=xmlHttp.responseText 

 } 

}function GetXmlHttpObject1()

{

var xmlHttp=null;

try

 {

 // Firefox, Opera 8.0+, Safari

 xmlHttp=new XMLHttpRequest();

 }

catch (e)

 {

 // Internet Explorer

 try

  {

  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

  }

 catch (e)

  {

  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;

}





function showdownload3(str,type)

{

	

if (str.length==0)

  { 

 document.getElementById('download3').innerHTML=""

  return

  }

xmlHttp=GetXmlHttpObject2()

if (xmlHttp==null)

  {

  alert ("Browser does not support HTTP Request")

  return

  } 

var url="modules/upload_file.php"

url=url+"?file="+str

url=url+"&type="+type

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanged2 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

} 



function stateChanged2() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById('download3').innerHTML=xmlHttp.responseText 

 } 

}

function GetXmlHttpObject2()

{

var xmlHttp=null;

try

 {

 // Firefox, Opera 8.0+, Safari

 xmlHttp=new XMLHttpRequest();

 }

catch (e)

 {

 // Internet Explorer

 try

  {

  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

  }

 catch (e)

  {

  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;

}





function showRetail_10(str,type)

{

	

if (str.length==0)

  { 

 document.getElementById('showretail').innerHTML=""

  return

  }

xmlHttp=GetXmlHttpObject_retail()

if (xmlHttp==null)

  {

  alert ("Browser does not support HTTP Request")

  return

  } 

var url="modules/a_retail.php"

url=url+"?loca="+str

url=url+"&type="+type

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanged_retail 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

} 



function stateChanged_retail() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById('showretail').innerHTML=xmlHttp.responseText 

 } 

}

function GetXmlHttpObject_retail()

{

var xmlHttp=null;

try

 {

 // Firefox, Opera 8.0+, Safari

 xmlHttp=new XMLHttpRequest();

 }

catch (e)

 {

 // Internet Explorer

 try

  {

  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

  }

 catch (e)

  {

  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;

}


function view_ajax_adv(return_file,file,str,parm1,parm2,parm3)

{

   
	if (file.length==0)
{ 
//eval("document.getElementById('" + return_file + "').innerHTML=''");
 document.getElementById(return_file).innerHTML="";
return
}
var xmlHttp
xmlHttp=GetXmlHttpObject_1()

if (xmlHttp==null)

  {

  alert ("Browser does not support HTTP Request")

  return

  } 

var url=file
url=url+"?parm="+str
url=url+"&parm1="+parm1
url=url+"&parm2="+parm2
url=url+"&parm3="+parm3

url=url+"&sid="+Math.random()


xmlHttp.onreadystatechange=function(){
stateChanged_1(xmlHttp,return_file)
}

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

} 



function stateChanged_1(xmlHttp,return_file)

{ 

if (xmlHttp.readyState==4 && (xmlHttp.status==200 || window.location.href.indexOf("http")==-1))

 { 
//eval("document.getElementById('" + return_file + "').innerHTML=xmlHttp.responseText");
document.getElementById(return_file).innerHTML=xmlHttp.responseText 


 } 
 


}

function GetXmlHttpObject_1()

{

var xmlHttp=null;

try

 {

 // Firefox, Opera 8.0+, Safari

 xmlHttp=new XMLHttpRequest();

 }

catch (e)

 {

 // Internet Explorer

 try

  {

  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

  }

 catch (e)

  {

  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;

}

var xmlHttp	

function view_ajax(file,str,parm1,parm2,parm3)

{

	if (str.length==0)
{ 
 document.getElementById('download').innerHTML="";
return
}

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

  {

  alert ("Browser does not support HTTP Request")

  return

  } 

var url=file
url=url+"?parm="+str
url=url+"&parm1="+parm1
url=url+"&parm2="+parm2
url=url+"&parm3="+parm3

url=url+"&sid="+Math.random()


xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)

xmlHttp.send(null)

} 



function stateChanged() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById('download').innerHTML=xmlHttp.responseText 

 } 

}function GetXmlHttpObject()

{

var xmlHttp=null;

try

 {

 // Firefox, Opera 8.0+, Safari

 xmlHttp=new XMLHttpRequest();

 }

catch (e)

 {

 // Internet Explorer

 try

  {

  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

  }

 catch (e)

  {

  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;

}





