﻿/*****Global JS Scripts for VPA*****/

//*************clearTextBox()*******************
function clearTextBox(itemID) {
	document.getElementById(itemID).value = "";
}

//*************end clearTextBox()*******************

//***********confirmMsg()************************
function confirmMsg(message) {
	if(!confirm(message)) {
		return false;
	}
	else {
		return true;
	}	
}
//***********end confirmMsg()********************

//cbSelect()
function cbSelect(elementID, state) {
	var cbList; //will hold the element's id
	
	cbList = document.getElementById(elementID);
	cbListCount = document.getElementsByTagName("input");
	for(i=0;i < cbListCount.length; i++) {
		cbListCount[i].checked = state;
	}
	
	//if link, do not forward
	return false;
}
//************end cbSelect**********************


