
function ValidateUploadImageForm()
{
	
	if(Form1.txtTitle.value == '')
	{
		alert('Report Title can not be left blank.');
		Form1.txtTitle.focus();
		return false;
	}
	
	if(Form1.file.value == '' && Form1.file1.value == '' && Form1.file2.value == '' && Form1.file3.value == '' && Form1.file4.value == '')
	{
		alert('Please select Image');
		Form1.file.focus();
		return false;
	}
	
	if(Form1.txtDesc.value == ''  )
	{
		alert('Report Description can not be left blank.');
		Form1.txtDesc.focus();
		return false;
	}
	
	if(Form1.txt1.value != '')
	{
		if(Form1.txt1.value.length > 4000)
		{
			alert('Report Description can be up to 4000 characters.');
			Form1.txt1.focus();
			return false;
		}
	}
	
	if(Form1.txtDesc.value != '')
	{
		if(Form1.txtDesc.value.length > 4000)
		{
			alert('Report Description can be up to 4000 characters.');
			Form1.txtDesc.focus();
			return false;
		}
	}
	
		document.getElementById("Button1").value="Uploading File Please Wait..";
		return true;
}



function ValidateUploadForm()
{
	
	if(Form1.title.value == '')
	{
		alert('Report Title can not be left blank.');
		Form1.title.focus();
		return false;
	}
	
	if(Form1.txtUtube.value == '' && Form1.file.value == '')
	{
		alert('Please Select File Video Upload');
		Form1.txtUtube.focus();
		return false;
	}
	
	if(Form1.author.value == '')
	{
		alert('Report Description can not be left blank.');
		Form1.author.focus();
		return false;
	}
	
	if(Form1.txt1.value != '')
	{
		if(Form1.txt1.value.length > 4000)
		{
			alert('Report Description can be up to 4000 characters.');
			Form1.txt1.focus();
			return false;
		}
	}
	
	if(Form1.author.value != '')
	{
		if(Form1.author.value.length > 4000)
		{
			alert('Report Description can be up to 4000 characters.');
			Form1.author.focus();
			return false;
		}
	}
		
		document.getElementById("UploadButton").value="Uploading File Please Wait..";
	
		return true;
	
}

function ValidateCommentsForm()
{
	
	if(Form1.txtName.value == '')
	{
		alert('Name can not be left blank.');
		Form1.txtName.focus();
		return false;
	}
		if(Form1.txtEmail.value == '')
	{
		alert('Email can not be left blank.');
		Form1.txtEmail.focus();
		return false;
	}
		if(Form1.txtCity.value == '')
	{
		alert('City can not be left blank.');
		Form1.txtCity.focus();
		return false;
	}
	
	if(Form1.txtDesc.value == '' && Form1.txt1.value == '' )
	{
		alert('Comments can not be left blank.');
		Form1.txtName.focus();
		return false;
	}
	
	if(Form1.txt1.value != '')
	{
		if(Form1.txt1.value.length > 1000)
		{
			alert('Comments can be up to 1000 characters.');
			Form1.txt1.focus();
			return false;
		}
	}
	
	if(Form1.txtDesc.value != '')
	{
		if(Form1.txtDesc.value.length > 1000)
		{
			alert('Comments can be up to 1000 characters.');
			Form1.txtDesc.focus();
			return false;
		}
	}
	
return true;
}