<!-- // 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 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 == 1)
		{
			//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=500,height=350,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1');
		if (newWindow) {
			newWindow.opener=self;
			newWindow.focus();
		}
	}
// -->

