/* 
 * 
 * bookingBox-xx.js
 * 
 * $Id: bookingBox-01.js,v 1.1 2011-03-15 14:04:32 mat Exp $
 * 
 * Copyright (C) 2011 Discover Dorset Ltd
 * 
 * Discover Dorset, 1 Lowther House, 110 Lowther Rd, Bournemouth, Dorset, BH8 8NS, GB
 * 
 */

onLoadFn.push(bookingBoxInit);

function bookingBoxInit() {
    
    for (var i = 0; i < document.forms.length; i++) {

        var anchor = document.forms[i].getElementsByTagName("a")[0];

        if (containsWord(anchor.className, "ident_submit")) {

            anchor.onclick = submit;
        }
    }
    
    return true;
}

function submit() {

    this.parentNode.submit();

    return false;
}
