
	function closeMe(){
//			alert("closeMe from the js file");
	        if ( parent && parent.myLightWindow ) {            
        	    parent.myLightWindow.deactivate();            
	        }

	}
function gotoProductDetails(productID){
	window.open("/webapp/wcs/stores/servlet/ProductDisplay?productId=" + productID + "&catalogId=10051&storeId=10001&langId=-1");
//	location.href="/webapp/wcs/stores/servlet/ProductDisplay?productId=" + productID + "&catalogId=10051&storeId=10001&langId=-1";	
//makeRequest(productID);
}

var xmlDoc = null ;
  
function addToCart(url){
	if(parent && parent.myLightWindow) {
		location.href = url.toString();		
	}
	else {
		
		if(window.opener){
			window.opener.location.href = url.toString();	
			close();
		
		
		}
		else {
			location.href = url.toString();	
		}
	}
}
function addToCart_Lightbox(url){
//	alert("addToCart");
	location.href = url.toString();	
}

var http_request = false;

function makeRequest(url) {


//	alert(url );
		var req = new JSONScriptRequest();
		req.open('GET', url.toString());
		req.onreadystatechange = function() {
		if (req.readyState == 4) {
		  alert(req.responseJSON);
		}
	  };
	  req.send(null);
	  

}

function alertContents() {
  if (http_request.readyState == 4) {
      if (http_request.status == 200) {
          alert(http_request.responseText);
      } else {
          alert('There was a problem with the request.');
      }
  }
}

