function xmlhttpAddToCart(strURL) {
	
	//alert(strURL);
	//if(attachCustID == ''){
	//	return;
	//}
	var brokenstring=strURL.split("&"); 
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() 
	{
        if (self.xmlHttpReq.readyState == 4) {

           document.getElementById('ADDTOCART').innerHTML = self.xmlHttpReq.responseText;
//alert(self.xmlHttpReq.responseText);
setTimeout("Refresh()",2000);
		  // xmlhttpShowImagesRecord('modlesPicLoad.php')
		  //		alert(ocument.getElementById('Property_County1').innerHTML);
        }
    }
	var queryString = strURL;
	//alert(queryString);
    self.xmlHttpReq.send(queryString);	
}



function xmlhttpChangeType(strURL)
{
	
	//alert(strURL);
	//if(attachCustID == ''){
	//	return;
	//}
	
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
   self.xmlHttpReq.onreadystatechange = function() 
	{
        if (self.xmlHttpReq.readyState == 4) {

           document.getElementById('VIDEODIV').innerHTML = self.xmlHttpReq.responseText;
		  // xmlhttpShowImagesRecord('modlesPicLoad.php')
			//alert(ocument.getElementById('VIDEODIV').innerHTML);
        }
    }
	var queryString = strURL;
	//alert(queryString);
    self.xmlHttpReq.send(queryString);	
}


function xmlhttpAddToCart1(strURL) {
	
	//alert(strURL);
	//if(attachCustID == ''){
	//	return;
	//}
	
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
   self.xmlHttpReq.onreadystatechange = function() 
	{
        if (self.xmlHttpReq.readyState == 4) {

           document.getElementById('ADDTOCART1').innerHTML = self.xmlHttpReq.responseText;
setTimeout("Refresh()",2000);
		  // xmlhttpShowImagesRecord('modlesPicLoad.php')
		  //		alert(ocument.getElementById('Property_County1').innerHTML);
        }
    }
	var queryString = strURL;
	//alert(queryString);
    self.xmlHttpReq.send(queryString);	
}
function Refresh(videoid)
{
//alert('Thank You For Purchase');
window.location.href='shoppingcart.php';
}


//===================================
function xmlhttpShowPlayer(videoID,ChapterId)
{
	strURL='playerdiv.php?videoid='+videoID+'&chapter_id='+ChapterId;
	//alert(strURL);
	var brokenstring=strURL.split("&"); 
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
   self.xmlHttpReq.onreadystatechange = function() 
	{
        if (self.xmlHttpReq.readyState == 4) {

           document.getElementById('00').innerHTML = self.xmlHttpReq.responseText;

		  
		  
        }
    }
	var queryString = strURL;
	//alert(queryString);
    self.xmlHttpReq.send(queryString);	
}
function xmlhttpCount(ID,TYPE)
{
	strURL='count.php?id='+ID+'&type='+TYPE;
	//alert(strURL);
	//alert(strURL);
	
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
   self.xmlHttpReq.onreadystatechange = function() 
	{
        if (self.xmlHttpReq.readyState == 4) {
//alert(self.xmlHttpReq.responseText);
         //  document.getElementById('00').innerHTML = self.xmlHttpReq.responseText;

		  
		  
        }
    }
	var queryString = strURL;
	//alert(queryString);
    self.xmlHttpReq.send(queryString);	
}


