/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function

function validate() // validate form
{
	if(document.inform.name.value =="") {
		alert('Please enter your full name');
		document.inform.name.focus();
		return false;
	}else if(document.inform.address1.value ==""){
		alert('Please enter the first line of your address');
		document.inform.address1.focus();
		return false;
	}else if(document.inform.postcode.value ==""){
		alert('Please enter your post or zip code for delivery');
		document.inform.postcode.focus();
		return false;
	}else if(document.inform.country.value ==""){
		alert('Please enter your delivery country');
		document.inform.country.focus();
		return false;
	}else if(document.inform.tel.value =="") {
		alert('Please enter your telephone number');
		document.inform.tel.focus();
		return false;
	}else if(document.inform.email.value ==""){
		alert('Please enter your email address');
		document.inform.email.focus();
		return false;
	}else{
		return true;
	}
} // end validate form funciton