function defaultSetups(){
	document.searchForm.keyword.focus();
};;

function clearKeyword(formPath){
	if (formPath.value == 'Product Search') {
		formPath.value = "";
	}
};;

function defaultSetups2(){
	document.advancedSearch.keyword.focus();
};;

function clearKeyword2(formPath){
	if (formPath.value == 'Keyword') {
		formPath.value = "";
	}
};;

function adjustDayTot(){
	repeat = document.getElementById("repeatType");
	text1 = document.getElementById("textdiv1");
	text2 = document.getElementById("textdiv2");
	text3 = document.getElementById("textdiv3");
	if (repeat.value == '0'){
		document.getElementById("repeatDay").value = "0";
		text1.style.display = 'inline';
		text2.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeat.value == '1'){
		document.getElementById("repeatDay").value = "7";
		text1.style.display = 'inline';
		text2.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeat.value == '2'){
		document.getElementById("repeatDay").value = "52";
		text2.style.display = 'inline';
		text1.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeat.value == '3'){
		document.getElementById("repeatDay").value = "26";
		text2.style.display = 'inline';
		text1.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeat.value == '4'){
		document.getElementById("repeatDay").value = "12";
		text3.style.display = 'inline';
		text1.style.display = 'none';
		text2.style.display = 'none';
	}
};;

function checkAdjustDayTot() {
	repeatField= document.getElementById("repeatType");
	text1 = document.getElementById("textdiv1");
	text2 = document.getElementById("textdiv2");
	text3 = document.getElementById("textdiv3");
 		if (repeatField.value == '0'){ 
		text1.style.display = 'inline';
		text2.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeatField.value == '1'){ 
		text1.style.display = 'inline';
		text2.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeatField.value == '2'){ 
		text2.style.display = 'inline';
		text1.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeatField.value == '3'){ 
		text2.style.display = 'inline';
		text1.style.display = 'none';
		text3.style.display = 'none';
	}
	if (repeatField.value == '4'){ 
		text3.style.display = 'inline';
		text1.style.display = 'none';
		text2.style.display = 'none';
	}
};;