// JavaScript Document//====================================================================================================
//	File Name		:	report.js
//----------------------------------------------------------------------------------------------------
//	Purpose			:	Client side validation in JavaScript.
//	Creation Date	:	28-June-2003
//
//====================================================================================================

//====================================================================================================
//	Function Name	:	Form_Submit()
//	Purpose			:	This function will executed when user submits a form. It checks validity of
//						every field in the form.
//
//	Parameters		:	frm  - form name
//	Return			:	true or false
//----------------------------------------------------------------------------------------------------
function Valid_Form(frm)
{
	with(frm)
    {
    	if(!IsEmpty(page_title,'Please Enter Page Title'))
        {
			return false;
        }
		
		if(!ValidString(page_title,'Please Enter Valid Page Title'))
		{
			return false;
		}
        return true;
    }
}

//====================================================================================================
//	Function Name	:	Show_Click()
//	Purpose			:	This function will set the Report id and action and then submit the form.
//	Parameters		:	DocId  - Report Id whose detail will to be shown
//	Return			:	none
//----------------------------------------------------------------------------------------------------
function Show_Click(Exclusive_Id)
{
	
	with(document.frmgallery)
	{		
		popupWindowURL("gallery.php?Action=Show&galleryid="+Exclusive_Id, 'PageContent', 730, 495, false, true, true);
	}
}


//====================================================================================================
//	Function Name	:	Edit_Click()
//	Purpose			:	This function will set the Member id and action and then submit the form.
//	Parameters		:	DocId  - Report Id whose detail will to be edit
//	Return			:	none
//----------------------------------------------------------------------------------------------------
function Edit_Click(page_id1)
{
	with(document.frmdetails)
	{
		page_id.value = page_id1;
		Action.value = "Modify";
		submit();
	}
}


function change_domain()
{
	with(document.frmdetails)
	{
		submit();
	}
}
