function fullScreen(theURL) {
        window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}

var Keanes = {
	HAL:function(id) {
		new Effect.Highlight( $( id ) );
		$(id).focus();
	},
	Vouchers : {
		onChangeRecipient:function() {
			if( $("recipient").value=="ME") {
				$("friend_details").hide();
			} else {
				$("friend_details").show();
			}
		},
		onChangeSendMethod:function() {
			if( $("sendMethod").value=="POST") {
				$("post_gift").show();
			} else {
				$("post_gift").hide();
			}
		},
		Validate:function() {
			if( $("purchaserFirstname").value.blank() ) {
				Keanes.HAL( "purchaserFirstname" );
				return false;
			}
			if( $("purchaserLastname").value.blank() ) {
				Keanes.HAL( "purchaserLastname" );
				return false;
			}
			if( $("purchaserTelephone").value.blank() ) {
				Keanes.HAL( "purchaserTelephone" );
				return false;
			}
			if( $("purchaserEmailAddress").value.blank() ) {
				Keanes.HAL( "purchaserEmailAddress" );
				return false;
			}
			if( $("purchaserAddress1").value.blank() ) {
				Keanes.HAL( "purchaserAddress1" );
				return false;
			}
			if( $("purchaserCity").value.blank() ) {
				Keanes.HAL( "purchaserCity" );
				return false;
			}
			if( $("recipient").value!="ME" ) {
				if( $("recipientFirstname").value.blank() ) {
					Keanes.HAL( "recipientFirstname" );
					return false;
				}
				if( $("recipientLastname").value.blank() ) {
					Keanes.HAL( "recipientLastname" );
					return false;
				}
				if( $("recipientAddress1").value.blank() ) {
					Keanes.HAL( "recipientAddress1" );
					return false;
				}
				if( $("recipientCity").value.blank() ) {
					Keanes.HAL( "recipientCity" );
					return false;
				}
			}
			return true;
		}
	}
}