function PopWind(name, width, height, lang) 
{
	var newWindow = window.open("html/image.html?img=" + name + "&width=" + width + "&height="+ height + "&lang=" + lang,"IMG","height=" + height + ",width=" + width + ",toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes");
}

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 = '#FFFFFF';
		document.forms[form].elements[ele].style.background = '#FFFFCC';
		}
	return msg;
}

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

}
function CCcolorVoid(id,type) 
{
	return false;
}
function CCcolor(id,type) 
{
	tablecolour = '#ffdd00'
		if (type == 'in') 
		{ 
			id.bgColor = tablecolour;
		}
		else 
		{
			id.bgColor = '#ffffff';
		}
}

