function Ccolor(id,type)
{
	tablecolour = '#AAC2DB'
		if (type != 'booboo') {
			if (type == 'in') {
				id.bgColor = tablecolour;
			}
			else {
				id.bgColor = '#8098B0';
			}
		}
}

function validate(form) {
	//alert(form);
	var j = 0;
	msg = "";
	for(var i = 0;i < ele.length;i++) {
		if(isBlank(form, ele[i])) {
			invalid(form, ele[i]);
			msg = msg + msgs[i] +"\n";
			j = j +1;
		}
	}
	if(j == 0) {
		return true;
	}
	else {
		alert(alertMsg + "\n"+ msg);
		return false;
	}
}
function invalid(form, ele) {
	if(!document.layers) {
		document.forms[form].elements[ele].style.borderColor = '#3D7BB6';
		document.forms[form].elements[ele].style.background = '#f4f4f4';
		}
	return msg;
}

function isBlank(form,ele) {
	str = document.forms[form].elements[ele].value;
	if(str == "") {
		return true;
	}
	else {
		return false;
	}

}

function popUp(page, width, height, lang) 
{
	var newWindow = window.open(page,"GenericPage","height=" + height + ",width=" + width + ",toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes");
}



