////////////////////////////////////////////
function nb_sec(a)
{
	this.document.frm_sec.st_pos.value=a;
	handler("content.php",js_form_submit(this.document.frm_sec));
}
//////////////////////////////////////////////
function dy_mp_update(a,b)
{
	handler("mem_photo.php","act=mp_show&filter_pc_id="+a+"&msg="+b);
}
//////////////////////////////////////////////
function dy_mp_edit(a)
{
	this.document.frm.act.value="mp_edit";
	handler("mem_photo.php",js_form_submit(this.document.frm)+"&msg="+a);
}
//////////////////////////////////////////////
function dy_mp_add(a)
{
	this.document.frm.act.value="mp_add";
	handler("mem_photo.php",js_form_submit(this.document.frm)+"&msg="+a);
}
//////////////////////////////////////////////
function dy_mp_save(a,b)
{
	handler("mem_photo.php","act=mp_show&filter_pc_id="+a+"&msg="+b);
}
/////////////////////////////////////////////
function chk_mp_edit()
{
	if(this.document.frm.pg_pc_id.value==-1 || this.document.frm.pg_title.value=="" )
	{
		alert("Please fill all * marked fields to continue");
		return false;
	}
	if(this.document.frm.captcha.value=="")
	{
		alert("Please enter Confirmation Code to continue");
		return false;
	}
	this.document.frm.act.value="mp_update";
	js_xml_form_submit("mem_photo.php",js_form_submit(this.document.frm));
	return true;
}
/////////////////////////////////////////////
function chk_mp_add()
{
	if(this.document.frm.pg_pc_id.value==-1 || this.document.frm.pg_title.value=="" || this.document.frm.pg_file.value=="")
	{
		alert("Please fill all * marked fields to continue");
		return false;
	}
	if(this.document.frm.captcha.value=="")
	{
		alert("Please enter Confirmation Code to continue");
		return false;
	}
	this.document.frm.act.value="mp_save";
	js_xml_form_submit("mem_photo.php",js_form_submit(this.document.frm));
	return true;
}
////////////////////////////////////////////
function nb_mp(a)
{
	this.document.frm.st_pos.value=a;
	this.document.frm.act.value="mp_show";
	js_xml_form_submit("mem_photo.php",js_form_submit(this.document.frm));
}
///////////////////////////////////////////
function mp_del(a)
{
	if(confirm("Are you sure you want to delete selected Photo?"))
	{
		this.document.frm.act.value="mp_delete";
		this.document.frm.pg_id.value=a;
		js_xml_form_submit("mem_photo.php",js_form_submit(this.document.frm));
	}
}
///////////////////////////////////////////
function mp_add()
{
	this.document.frm.act.value="mp_add";
	js_xml_form_submit("mem_photo.php",js_form_submit(this.document.frm));
}
///////////////////////////////////////////
function mp_edit(a)
{
	this.document.frm.act.value="mp_edit";
	this.document.frm.pg_id.value=a;
	js_xml_form_submit("mem_photo.php",js_form_submit(this.document.frm));
}
///////////////////////////////////////////
function js_mp_reload_pg()
{
	this.document.frm_filter.act.value="mp_show";
	js_xml_form_submit("mem_photo.php",js_form_submit(this.document.frm_filter));
}
//////////////////////////////////////
function js_pg_detail(a)
{
	this.document.frm.pg_id.value=a;
	this.document.frm.act.value="pg_detail";
	js_xml_form_submit("photo.php",js_form_submit(this.document.frm));
}
/////////////////////////////////////
function pg_mover(id)
{
ctrl=document.getElementById(id);
ctrl.style.borderColor="#800000";
ctrl.style.backgroundColor="#FFEFDF";
}
/////////////////////////////////////////////
function pg_mout(id)
{
ctrl=document.getElementById(id);
ctrl.style.borderColor="#FF9900";
ctrl.style.backgroundColor="#FFFFD9";
}
////////////////////////////////////////////
function nb_pg(a)
{
	this.document.frm.st_pos.value=a;
	this.document.frm.act.value="pg_show";
	js_xml_form_submit("photo.php",js_form_submit(this.document.frm));
}

///////////////////////////////////////////
function js_photo_gal_reload_pg()
{
	this.document.frm_filter.act.value="pg_show";
	js_xml_form_submit("photo.php",js_form_submit(this.document.frm_filter));
}
////////////////////////////////////////////
function sso_signup_pay_show()
{
	this.document.frm.act.value="signup_pay_show";
	js_xml_form_submit("login.php",js_form_submit(this.document.frm));
}
////////////////////////////////////////////
function chk_login_()
{
	if(this.document.frm_login_.mem_username.value==""|| this.document.frm_login_.mem_password.value=="")
	{
		alert("Please enter Username/Password to login");
		//return false;
	}
	else
	{
	this.document.frm_login_.act.value="login_do";
	js_xml_form_submit("login.php",js_form_submit(this.document.frm_login_));
	this.document.frm_login_.mem_username.value="";
	 this.document.frm_login_.mem_password.value=""
	}
	//return false;
}
////////////////////////////////////////////
function chk_login()
{
	if(this.document.frm.mem_username.value==""|| this.document.frm.mem_password.value=="")
	{
		alert("Please enter Username/Password to login");
		return false;
	}
	this.document.frm.act.value="login_do";
	js_xml_form_submit("login.php",js_form_submit(this.document.frm));
	return false;
}
///////////////////////////////////////////
function paypal_do()
{
this.document.webscr.submit();
}
//////////////////////////////////////////
function chk_member_signup()
{
	if(this.document.frm.mem_username.value==""|| this.document.frm.mem_password.value=="" || this.document.frm.mem_name.value==""|| 
	this.document.frm.mem_email.value==""|| this.document.frm.mem_dob_mm.value==-1 || this.document.frm.mem_dob_dd.value==""|| this.document.frm.mem_dob_yy.value=="")
	{
		alert("Please fill all * marked fields to continue");
		return false;
	}
	if(chkmail(this.document.frm.mem_email.value)==0)
	{
		alert("Please enter correct Email Address");
		return false;
	}
	if(this.document.frm.mem_password.value!=this.document.frm.mem_password1.value)
	{
		alert("Password & Confirm Password do not matched");
		return false;
	}
	if(this.document.frm.terms.checked==false)
	{
		alert("Please accept our Terms & Conditions in order to proceed");
		return false;
	}
	if(this.document.frm.captcha.value=="")
	{
		alert("Please enter the Confirmation Code to continue");
		return false;
	}
	this.document.frm.act.value="signup_do";
	js_xml_form_submit("login.php",js_form_submit(this.document.frm));
	return false;
	
}
