function CheckAllBoxes(theform) {
	for(var i = 0; i < theform.length; i++){
    	var e = theform.elements[i];
    	
		if( e.type == "checkbox"){
			e.checked = true;
		}
	}
}

function UnCheckAllBoxes(theform) {
	for (var i = 0; i < theform.length; i++){
		var e = theform.elements[i];
		
		if( e.type == "checkbox"){
			e.checked = false;
		}
	}
}

function confirmSubmit(){
	if (confirm("Are you sure you wish to continue?"))
		return true;
	else
		return false;
}

function SelectTextArea(theform,thename){
	for (var i = 0; i < theform.length; i++){
	    var e = theform.elements[i];
	    
	    if(e.name == thename){
		    e.focus();
		    e.select();
	    }
	}
}
