
function doDemo(
	type,
	filePath,
	name,
	height,
	width)
{

	switch (type) {
		case "fp_js_html":
			doHtmlPopupDemo(filePath, height, width);
			break;
	}
//alert("demo: " + type + ", " + filePath + ", " + name + ", " + height + ", " + width);
}


function doHtmlPopupDemo(
	filePath,
	height,
	width)
{
	openWin(filePath, height, width, 100, 100)
}


function openWin(
	url,
	height,
	width,
	top,
	left) 
{
	var opts = "width=" + width + ",height=" + height + ",copyhistory=0,directories=0,location=0," + 
			"menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,left=" + left + ",top=" + top;

	winRef = window.open(url, "_demo", opts);
	winRef.focus()

	return winRef;
}


function doDemo2(id)
{

	win = openWin("/us/products/doDemo.asp?id=" + id, 5, 5, 2000, 2000);
	self.focus();
}

