function ValidateInputs() {
	var txtInput;
	var blnValidated = true;
	for(i = 0; i < arrReqInputs.length; i++){
		//Lay gia tri cac o Input
		txtInput = document.all(arrReqInputs[i]);
		if(txtInput == null)
			continue;
		//Kiem tra tinh hop le cua du lieu
		var intIsRequired = arrIsRequired[i];
		if (intIsRequired== 1)
		{
		    if(txtInput.value=="")
		    {
			    txtInput.style.backgroundColor = "Green";
			    blnValidated = false;
		    }else
		    {
			    var strDataType = arrDataTypes[i];
			    switch(strDataType)
			    {
				    case "int":
					    if(isNaN(parseInt(txtInput.value))){
						    txtInput.style.backgroundColor = "Green";
						    blnValidated = false;
					    }else
						    txtInput.style.backgroundColor = "White";
				    break;				
				    default:
					    txtInput.style.backgroundColor = "White";
				    break;
			    }
		    }
		}
		else
		{
		    var strDataType = arrDataTypes[i];
			    switch(strDataType)
			    {
				    case "int":
					    if(isNaN(parseInt(txtInput.value))){
						    txtInput.style.backgroundColor = "Green";
						    blnValidated = false;
					    }else
						    txtInput.style.backgroundColor = "White";
				    break;				
				    default:
					    txtInput.style.backgroundColor = "White";
				    break;
			    }
		}
		
	}
	return blnValidated;
}

