/*
	Date Created : 1st November
	
	Date Modified : 1st November - Added a function submitForm()..
	
	Purpose : This is javascript file. Common javascript functions, which can be used in more than one pages, will reside in this file..
*/


//This function will be called when "Delete" link is clicked...
function submitForm(frmName, frmAction)
{
	objFrm = document.getElementById(frmName);
	
	objFrm.action = frmAction;
	objFrm.target = "_self";
	objFrm.submit();	
}


//This function will be called when user selects any record in the listing.. 
//Background color of selected record will be changed.
function changeSelColor(chkBox, oldClass)
{
	objTd = chkBox.parentNode;
	
	objTr = objTd.parentNode;
	
	if(chkBox.checked)
	{
		objTr.className = "selrow";
	}
	else
	{
		objTr.className = oldClass;
	}	

}

