// FORM BOXES SCRIPTS

check = []; //this is an array that stores all the true/false values for each checkbox 

function checkBox(id) 
    { 

    if(check[id] != true) //if a value is not true, use this rather than == false, 'cos the first time no value will be set and it will be undefined, not true or false 
        { 
        document.getElementById('imgCheck' + id).src = "images/chbx_on.png"; //change the image 
        document.getElementById('inputCheck' + id).value = "true"; //change the field value 
        check[id] = true; //change the value for this checkbox in the array 
        } 
    else 
        { 
        document.getElementById('imgCheck' + id).src = "images/chbx_off.png"; 
        document.getElementById('inputCheck' + id).value = "false"; 
        check[id] = false; 
        } 
    }
	

function defaultSetups(){
	document.searchForm.keyword.focus();
};;

function clearKeyword(formPath){
	if (formPath.value == 'Search') {
		formPath.value = "";
	}
};;

function clearKeyword(formPath){
	if (formPath.value == 'Sk8rName') {
		formPath.value = "";
	}
};;

function clearKeyword(formPath){
	if (formPath.value == 'Region') {
		formPath.value = "";
	}
};;
