//====================================================================================================
//	Function Name	:	Show_Click()
//	Purpose			:	This function will set the Report id and action and then submit the form.
//	Parameters		:	ImageId
//	Return			:	none
//----------------------------------------------------------------------------------------------------
function Show_Click(ReportId)
{
	
	with(document.frmergo)
	{
		
		ergo_id.value  = ReportId;		
		submit();
	}
}
//====================================================================================================
//	Function Name	:	Get_Info()
//	Purpose			:	This function will set the Report id and action and then submit the form.
//	Parameters		:	ImageId
//	Return			:	none
//----------------------------------------------------------------------------------------------------
function Get_Info(ImageId)
{
	with(document.frmphotogallery)
	{
		popupWindowURL("getinfo.php?imageid="+ImageId,'PageContent1',450, 375, false, false, true);
	}
}

//====================================================================================================
//	File Name		:	login.js
//----------------------------------------------------------------------------------------------------
//	Purpose			:	Client side validation in JavaScript.
function Form_Submit(frm)
	{
		with(frm)
		{
			if(!IsEmpty(friend_name, 'Please Enter Your Friend Name.'))
	        {
				return false;
	        }			
    		if(!IsEmpty(friend_email, 'Please Enter Your Friend Email.'))
        	{
				return false;
        	}
			if(!IsEmail(friend_email, 'Please Enter Valid Email.'))
			{
				return false;
			}
			if(!IsEmpty(sender_name, 'Please Enter Your Name.'))
        	{
				return false;
        	}			
			if(!IsEmpty(sender_email, 'Please Enter Your Email.'))
			{
				return false;
			}
			if(!IsEmail(sender_email, 'Please Enter Valid Email.'))
			{
				return false;
			}
			if(message.value == '')
			{
				alert("Please Enter Message You Want To Send.");
				message.focus();
				return false;
			}			
		}
		return true;
}


function view_record(image_id)
{
	with(document.frmphotogallery)
	{
		if(image_id == 0)
		{
			alert('Next Record is Not available');	
		}
		else
		{
			imageid.value = image_id;
			submit();
		}
	}
}
