/*
function NewWind(theurl,thewidth,theheight,IsScrolling)
{
	var browser = navigator.appName;
	var isNetscape = browser.indexOf("Microsoft") == -1 ? true: false;
	var popup;
	var thetop = 0;
	var theleft = 0;
	var screenH = 640;
	var screenW = 480;
	
	//get the resolution settings
	screenH = screen.availHeight;
	screenW = screen.availWidth;
			
	//get the left spacing based on resolution
	theleft = Math.ceil((screenW - thewidth)/2);
	thetop = Math.ceil((screenH - theheight)/2);
			
	if (isNetscape)
		popup = window.open(theurl, "Popup","top="+thetop+",left="+theleft+",width="+thewidth+",height="+theheight+",toolbar=0,menubar=0,resizable=0,status=0,location=0,directories=0,scrollbars="+IsScrolling);
	else
		popup = window.open(theurl, "Popup","top="+thetop+",left="+theleft+",width="+thewidth+",height="+theheight+",toolbar=0,menubar=0,status=0,location=0,directories=0,scrollbars="+IsScrolling);
}
*/
function NewWind(theppid,thecatid,theprodid)
{
	var browser = navigator.appName;
	var isNetscape = browser.indexOf("Microsoft") == -1 ? true: false
	var popup;
	var w= 640;
	var h = 520;
	var t = 0;
	var l = 0;
	var url = "/products/prod_details.cfm?ppid="+theppid+"&pcatid="+thecatid+"&pid="+theprodid;
	
	//get the resolution settings
	screenH = screen.availHeight;
	screenW = screen.availWidth;
	
	//get the left spacing based on resolution
	l = Math.ceil((screenW - w)/2);
	t = Math.ceil((screenH - h)/2);
	
	if (isNetscape)
		popup = window.open(url, "Popup","top="+t+",left="+l+",width="+w+",height="+h+",toolbar=0,menubar=0,resizable=1,status=0,location=0,directories=0,scrollbars=1");
	else
		popup = window.open(url, "Popup","top="+t+",left="+l+",width="+w+",height="+h+",toolbar=0,menubar=0,status=0,location=0,directories=0,scrollbars=1");
}