/******************************************************************************
*
* SCRIPT: confirmAndFollow.js
* AUTHOR: Janos Gyerik <info@titan2x.com>
* DATE:   2010-04-16
* REV:    1.0.T
*
* PURPOSE: convert a.confirmAndFollow to popup a confirm window with
* 	   the anchor title in it, and follow the link if user clicks OK.
*
* REV LIST:
*        DATE:          DATE_of_REVISION
*        BY:            AUTHOR_of_MODIFICATION
*        MODIFICATION:  Describe what was modified, new features, etc-
* 
******************************************************************************/

$(document).ready(function() {
    $('a.confirmAndFollow').click(function(e) {
	e.preventDefault();
	var msg = $(this).attr('title');
	var url = $(this).attr('href');
	if (confirm(msg)) {
	    if (navigator.userAgent.indexOf('MSIE') > 0) window.location = url;
	    else document.location.href = url;
	}
    });
});


/* eof */

