//define class
function JobBoardClass(){	
	this.frmObj = '';
}

//declare class object
var objJobBoard = null;

//to be called after page loaded fully
window.onload = function(){
	//create object
	objJobBoard = new JobBoardClass();	
}
		
//handle job search form keyword field
JobBoardClass.prototype.handleKeyWord = function(currentPage){
	var stKeyWord = new String();
	var thisForm = '';
	
	//optional argument
	if(currentPage == "/index.cfm"){
		thisForm = 'JobSearch';
	} else if(currentPage == "/daily_email/test_email_alert.cfm" || currentPage=="/daily_email/edit_email_alert.cfm"){
		thisForm = 'EditEmailAlert';
	}
	
	//alert('thisForm='+thisForm);
	this.frmObj = eval('document.'+thisForm);
	
	stKeyWord = this.frmObj.frm_keyword.value.toLowerCase();
	if(stKeyWord == 'keyword'){
		this.frmObj.frm_keyword.value = '';
	}
}


