function newWindow() {
	einsteinWindow = window.open('http://www.crn.com/sections/galleries/fastgrowth06/1.jhtml', 'einsteinWindow', 'width=800,')
}

function companyPick(memPav,company_id) {
	for ( i=0; i<memPav.options.length; i++) {
		if (memPav.options[i].value == company_id ) {
		memPav.options[i].selected = true;
		return;
		}
	}
}

function jumpPage(memPav) {
	newPage = memPav.options[memPav.selectedIndex].value
	if (newPage == "") {
	}
	else if (newPage == "-1") {
		window.location = '/library/';
	}
	else {
		window.location = '/library/?company_id='+newPage;
	}
}

function getfindByProductValues()
{
	document.searchReviews.findByProduct.value=document.searchReviews.findByProductSelect.value;
	document.searchReviews.findByCompany.value='';
	if(document.searchReviews.recommendedBox.checked)
	{
		document.searchReviews.recommended.value=1;
	}
	else
	{
		document.searchReviews.recommended.value='';
	}
}
function getfindByCompanyValues()
{
	document.searchReviews.findByProduct.value='';
	document.searchReviews.findByCompany.value=document.searchReviews.findByCompanySelect.value;
	if(document.searchReviews.recommendedBox.checked)
	{
		document.searchReviews.recommended.value=1;
	}
	else
	{
		document.searchReviews.recommended.value='';
	}
}

function setDefaults()
{
	if(document.searchform.queryText.value=="")
	{
		document.searchform.queryText.value ="Search ChannelWeb";
	}
}

function reloadFromIssue(form) // Reload the Page
{
	i             = form.issue.selectedIndex
	issueNo       = form.issue.options[i].value
	location.href = "/var/main/index.jhtml?issue_number=" + issueNo
	return true
}