$(document).ready(function() {
    $('#header').corners("10px top-left top-right");
	$('#content').corners("10px bottom-left bottom-right");
	$('.box').corners("8px");
	$('th.first').corners("5px top-left bottom-left");
	$('th.last').corners("5px top-right bottom-right");
});

function toggleAll(way,frm) {
	if (document.getElementsByTagName) {
		var cb = frm.getElementsByTagName("INPUT");
		for (i=0;i<cb.length;i++) {
			if (cb[i].type == "checkbox") {
				cb[i].checked = way;		
			}	
		}
	}
}

function checkInput(who) {
	if(who.value == "Enter Referral ID...") {
		who.className = who.className.replace(" label","");
		who.value = "";
	} else if(who.value == "") {
		who.className = who.className+" label";
		who.value = "Enter Referral ID...";
	}
}