/** ****************************************************************************
	Input Check Script
	Author: Andy Webber
	Created: 05/04/09
	
	Function: inputCheck(conf, orig)
	Checks value of 2 input boxes.Changes background red when they don't match
	and green when they do.
*******************************************************************************/

function inputCheck(form, conf, orig){
	var inp = document.forms[form].elements[conf];
	var check = document.forms[form].elements[orig];
	
	if (!document.forms[form])
		return;
		
	if (inp.value != check.value){
		inp.style.backgroundColor = "#ff3333";
	}
	else{
		inp.style.backgroundColor = "#33ff66";
	}	
	
	return;	
}
