var str = "left=0,screenX=0,top=0,screenY=0";

if (window.screen) {
  var ah = screen.availHeight - 30;
  var aw = screen.availWidth - 10;
  str += ",height=" + ah;
  str += ",innerHeight=" + ah;
  str += ",width=" + aw;
  str += ",innerWidth=" + aw;
  str += ",resizable"; 
  str += ",scrollbars=yes";
} else {
  str += ",resizable"; 
  // so the user can resize the window manually
}

/*function launchPopCatalog(url, name) {
  return window.open("http://www.platinumonlinecatalog.com/catalogload.asp", name, str);
}*/

function launchPopCatalog(url, name) {
  return window.open("http://platinumonlinecatalog.com", name, str);
}






// JavaScript Document

function pdfTrack(loc, filePath,fileName,pageName)
{
    pageUrl = window.location;
	readxmldoc('/TrackingPDFdocuments.aspx?loc='+loc+'&filePath='+filePath+"&fileName="+fileName+"&pageName="+pageName+"&pageUrl="+pageUrl);	
	window.open(filePath, "");
}

function readxmldoc(geturl)
{
	try
	{
		loadXMLDoc(geturl);
	}
	catch(e)
	{
		var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
		alert("Unable to get XML data:\n" + msg);
		return;
	}
}

function loadXMLDoc(url)
{
	if (window.ActiveXObject)
	{
		isIE = true;
		req = new ActiveXObject("Microsoft.XMLHTTP");
		if (req)
		{
			req.onreadystatechange = createxml;	
			req.open("GET", url, true);
			req.send();
		}
	}
	else if (window.XMLHttpRequest)
	{
		req = new XMLHttpRequest();
		req.onreadystatechange = createxml;	
		req.open("GET", url, true);
		req.send(null);
	}	
}

function createxml()
{
	if (req.readyState == 4)
	{
        if (req.status == 200)
		{
		    
			
		}
	}
}

if(navigator.userAgent.indexOf('MSIE 6') != -1)
{
	var shttp = new ActiveXObject("Microsoft.XMLHTTP");
}

else
{
	var shttp = new XMLHttpRequest();
}
