$(document).ready(function(){
    $('INPUT.auto-hint').each(function(i, el){
        if($(this).val() == ''){
            $(this).val($(this).attr('title'));
        }
        $(el).focus(function(){
            if ($(this).val() == $(this).attr('title')) {
                $(this).val('');
            }       
        });
        $(el).blur(function(){
            if ($(this).val() == '') {
                $(this).val($(this).attr('title'));
            }
        });
    });
});

function winclose2007()
{
	if ($.browser.msie && $.browser.version <= 8.0) {
		if(confirm('Note: This will end your browser session. Are you sure?')){
		closeIE();
		}else{ return false;}
	}
	if ($.browser.mozilla) {
		alert("This browser is not supported for automatic close. Please close the browser to logout complete");
	}
	if ($.browser.safari) {
	   alert("This browser is not supported for automatic close. Please close the browser to logout complete");
	}

	if ($.browser.opera) {
	   alert("This browser is not supported for automatic close. Please close the browser to logout complete");
	}
}

function closeIE(){	
	var windowClose = window.close;
	// Re-implement window.open
	window.close = function ()
	{
	   window.opener = '';
	   window.open("","_self");
	   windowClose();
	}
	window.opener = '';
	window.close();
}	
