<!-- // Activate Cloak and set global variables
function demoOpen(url) {
	var selectWindow = window;
	newWindow = window.open(url, 'demoWindow', 'width=450,height=350,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1');
	if (newWindow) {
		newWindow.opener=self;
		newWindow.focus();
	}
}

function prodOpen(url) {
	var selectWindow = window;
        newWindow = window.open(url, 'document');
	if (newWindow) {
		newWindow.opener=self;
		newWindow.focus();
	}
}

function learnOpen(url) {
	var selectWindow = window;
        newWindow = window.open(url, 'learnWindow', 'width=500,height=750,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1');
	if (newWindow) {
		newWindow.opener=self;
		newWindow.focus();
	}
}

function openWinSearch(theURL) { //v2.0
  prodNum = document.getElementById('ProdNum').value;
  URL = theURL + prodNum;
  window.open(URL);
  
}

function openWinPull(form) {
		var myindex=form.DROPGO.selectedIndex
		//alert("index value is " + myindex);
		if (myindex == 0)
		{
			//alert("inside test; value is 1");
			var selectWindow = window;
				newWindow = window.open('/popup_prodselect.php', '', 'width=500,height=600,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1');
			if (newWindow) 
				{
					newWindow.opener=self;
					newWindow.focus();
				}
		}
		else
		{
			//alert("inside test; value is not 1");
			location.href=form.DROPGO.options[myindex].value;
		}
		
}

	function buyOpen(url) {
		var selectWindow = window;
			newWindow = window.open(url, 'buyWindow', 'width=840,height=500,toolbar=0,location=1,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1');
		if (newWindow) {
			newWindow.opener=self;
			newWindow.focus();
		}
	}
function popCopyright() {
	window.open('http://www.netgear.com/popup_copywrite.html', 'popCopyright', 'toolbars=no,menu=no,location=no,scrollable=no,scrollbars=no,width=500,top=20,left=20,height=300');
}

// Function to display available Wi-Fi certifications in pop-up window
// Roberto Lino 
// 2004-10-06
function OpenCertWindow(certID, winID)
{
	var aWin, theUrl, theWidth, theHeight, left, top, params, winName;
	var certPreUrl;
	
	theWidth = 576; //width
	theHeight = 445; //height
	certPreUrl = "http://www.wi-fi.org/OpenSection/ViewCertificate.asp?CertID=";
	theUrl = certPreUrl + certID;
	
	left = ((screen.width - 10) / 2) - (theWidth / 2);
	top = ((screen.height - 30) / 2) - (theHeight / 2);
	params = "resizable=yes,scrollbars=yes,left=" + left + ",top=" + top + ",height=" + theHeight + ",width=" + theWidth;
	winName = winID;
	
	if (aWin)
		aWin.close();
	
	aWin = window.open(theUrl,winName,params);
	
	return;
}
// Function to display screenshots
// Roberto Lino 
// 2004-10-26
function OpenScreenshots(prodID,winName)
{
	var aWin, theUrl, theWidth, theHeight, left, top, params, winName;
	var scsPreUrl;
	var winID = prodID + "_pop";
	
	theWidth = 800; //width
	theHeight = 520; //height
	scsPreUrl = "/products/screenshots/default.php?id=";
	theUrl = scsPreUrl + prodID;
	
	left = ((screen.width) / 2) - (theWidth / 2);
	top = ((screen.height) / 2) - (theHeight / 2);
	params = "resizable=no,left=" + left + ",top=" + top + ",height=" + theHeight + ",width=" + theWidth;
	//winName = winNID;
	
	if (aWin)
		aWin.close();
	
	aWin = window.open(theUrl,winName,params);
	
	return;
}
// Function to display charts and diagrams
// Roberto Lino
// 2005-03-23
function OpenChart(image, width, height, title)
{
	var left, top, aWin;
	var theWidth = parseInt(width) + 30;
	var theHeight = parseInt(height) + 70;
	
	//alert(theWidth + " " + theHeight);
	//alert(title);
	
	left = ((screen.width) / 2) - (theWidth / 2);
	top = ((screen.height) / 2) - (theHeight / 2);
	params = "resizable=no,left=" + left + ",top=" + top + ",height=" + theHeight + ",width=" + theWidth;
	//winName = winNID;
	
	if (aWin)
		aWin.close();	
		
	var theURL = "/tools/displayChart.php?IMAGE=" + image + "&TITLE=" + title + "&HEIGHT=" + height + "&WIDTH=" + width;
	
	//alert(theURL);
	
	aWin = window.open(theURL,aWin,params);
	
	return;
}
// Function to open a custom browser window
// Roberto Lino
// 2005-03-29
function OpenWindow(file, width, height, title)
{
	var left, top, aWin;
	var theWidth = parseInt(width);
	var theHeight = parseInt(height);
	
	//alert(theWidth + " " + theHeight);
	//alert(title);
	
	left = ((screen.width) / 2) - (theWidth / 2);
	top = ((screen.height) / 2) - (theHeight / 2);
	params = "resizable=no,left=" + left + ",top=" + top + ",height=" + theHeight + ",width=" + theWidth;
	//winName = winNID;
	
	if (aWin)
		aWin.close();	
		
	var theURL = file + "?TITLE=" + title;
	
	//alert(theURL);
	
	aWin = window.open(theURL,aWin,params);
	
	return;
}
// -->

