function othersChecker(a,b)
{
	with(a)
	{
		if (value=="Others")
		{
			b.disabled = false;
			
		}
		else
		{
			b.disabled = true;
		}
	}
}

function showUpload()
{
		if (document.getElementById("single").checked == true)
		{
			document.getElementById("singleonly").style.display = '';
			document.getElementById("more").style.display = 'none';
		}
		else if (document.getElementById("multiple").checked == true)
		{
			document.getElementById("singleonly").style.display = 'none';
			document.getElementById("more").style.display = '';
		}
}

function disableOthers(a)
{
	if (a.value=="")
	{
		a.disabled= true;
	}
	else
	{
		a.disabled= false;
	}
}

function otherscheck(a,b)
{
	
	if(a.checked)
	{
		b.disabled = false;
	}
	else
	{
		b.disabled = true;
	}
}

function othersRadio(a,b)
{
	with(a)
	{
		b.disabled = false;
	}
}
function othersRadio2(a,b)
{
	with(a)
	{
		b.disabled = true;
	}
}

function zeroChecker(a,b)
{
	with(a)
	{
		if(value=="Zero Discharge")
		{
			b.disabled = true;
		}
		else
		{
			b.disabled = false;
		}
	}
}

function valCheck(a,b)
{
	with(a)
	{
		if(value==0)
		{
			b.disabled = true;
		}
		else
		{
			b.disabled = false;
		}
	}
}
function checkFile(a,b)
{
	

	if(a.value==b.value)
	{
		var r=confirm('A file of the same name has already been uploaded, Would like it to be replaced?');
		
		if(r==true)
			{
				return true;
			}
		else
			{
				return false;
			}
		
		
	}
	
	return true;
	
	
}

