<!--

//Used for feature navigation ---------------------------->
function close_and_go(loc) {
	window.opener.location.href = loc;
	self.close();
}

function showCalc(loc) {
	window.open('/calculator/'+loc,'Calculator_Window','width=640,height=480,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

function showFeature(loc) {
	window.open('/features/' + loc,'Feature_Window','width=600,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

function showLawnProgram(lang) {
	//alert('/features/program_'+lang+'.php');
	window.open('/features/program_'+lang+'.php','Lawn_Program_Window','width=620,height=850,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

function showPage(loc) {
	window.location.href = loc;
}
	

function showTest() {
	window.name='CILMAIN';
	window.open('/soiltest/dev/index.php','Soil_Test_Window','width=640,height=480,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

function showFrenchTest() {
	window.name='CILMAIN';
	window.open('/soiltest/dev/index_f.php','Soil_Test_Window','width=640,height=480,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

function newWin(loc) {
	window.open(loc,'new_win','toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1');
}

function jumpMenu() {
	loc = frm_nav.ddFeatureMenu.value;
	window.open('/features/' + loc,'Feature_Window','width=600,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

//Used for jumping between products

function set_action() {

if (document.product_list.ddProducts.value=='All')
	document.product_list.action = 'product_e.php?category='+document.product_list.category.value;
else
	document.product_list.action = 'product_e.php?prodID='+document.product_list.ddProducts.value;

}

function product_search(form_path,language)
{
	var selection='';
	
	for (x=0;x<form_path.radSearch.length;x++)
		if (form_path.radSearch[x].checked==true)
			selection = form_path.radSearch[x].value;
	if(language == 'English')
	{
		if(selection =='topic')
			form_path.action='/products/topic_search_e.php?search='+form_path.search.value;
		else if(selection =='product')
			form_path.action='/products/product_search_e.php?search='+form_path.search.value;
	}
	else
	{
		if(selection =='topic')
			form_path.action='/products/topic_search_f.php?search='+form_path.search.value;
		else if(selection =='product')
			form_path.action='/products/product_search_f.php?search='+form_path.search.value;
	}
	form_path.submit();
}


// Used in testing --------------------------------------->
function notify() {
	alert('Loading French Content....');
	}





//-->