if (typeof(keywordSearchObject) == 'undefined') 
{
    keywordSearchObject = function(objectName)
    {
    	this.objectName = objectName;
    }
}
keywordSearchObject.prototype.init = function()
{
	var currentObject     = this;		
	this.defaultValue     = $('#' + this.objectName + '_Keyword').val();	
	$('#' + this.objectName + '_Keyword').toggleVal();	
	$('#' + this.objectName + '_Submit').click(function() { currentObject.submit() } );
	$('#' + this.objectName + '_Keyword').setEnterHandler(function() { currentObject.submit() } );		    
}
keywordSearchObject.prototype.submit = function()
{
    var currValue = $('#' + this.objectName + '_Keyword').val();
    if (!currValue.length || (this.defaultValue == currValue))
    {
        alert('Please enter keyword');
    }
    else
    {
        $('#' + this.objectName + '_Keyword').parents('form').submit();
    }
}
