function CheckFormSubmit() {
   document.getElementById('btnConfirm').disabled = true;
   return true;
}

function CheckFormSubmit2() {
   document.getElementById('btnConfirm2').disabled = true;
   return true;
}

function frame_close_reload(){
    $.fancybox.close();
    window.location.reload();
}

$(document).ready(function() {
						   
	$("#frame_member_change_email").click(function(){
	
		$.fancybox({
			'width'				: 600,
			'height'			: 200,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member&a=edit_frame&action=change_email', 
			'onClosed': function() { parent.location.reload(true); }
		});

	});
						   
	$("#frame_member_change_password").click(function(){
	
		$.fancybox({
			'width'				: 600,
			'height'			: 200,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member&a=edit_frame&action=change_password', 
			'onClosed': function() { parent.location.reload(true); }
		});

	});
						   
	$("#frame_member_change_nickname").click(function(){
	
		$.fancybox({
			'width'				: 600,
			'height'			: 200,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member&a=edit_frame&action=change_nickname', 
			'onClosed': function() { parent.location.reload(true); }
		});

	});
						   
	$("#frame_member_aff_textlink").click(function(){
	
		$.fancybox({
			'width'				: 500,
			'height'			: 180,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_affiliate&a=edit_frame&action=textlink'
		});

	});
						   
	$("#frame_member_aff_banner1").click(function(){
	
		$.fancybox({
			'width'				: 500,
			'height'			: 200,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_affiliate&a=edit_frame&action=banner1'
		});

	});
						   
	$("#frame_member_aff_banner2").click(function(){
	
		$.fancybox({
			'width'				: 500,
			'height'			: 280,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_affiliate&a=edit_frame&action=banner2'
		});

	});
						   
	$("#frame_member_aff_banner3").click(function(){
	
		$.fancybox({
			'width'				: 500,
			'height'			: 200,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_affiliate&a=edit_frame&action=banner3'
		});

	});
						   
	$("#frame_member_empe_change_address").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employee&a=edit_frame&action=change_address'
		});

	});
						   
	$("#frame_member_empe_change_position").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employee&a=edit_frame&action=change_position'
		});

	});
						   
	$("#frame_member_empe_change_profile").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employee&a=edit_frame&action=change_profile'
		});

	});
						   
	$("#frame_member_empe_change_education").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employee&a=edit_frame&action=change_education'
		});

	});
						   
	$("#frame_member_empe_change_working").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employee&a=edit_frame&action=change_working'
		});

	});
						   
	$("#frame_member_empe_change_training").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employee&a=edit_frame&action=change_training'
		});

	});
						   
	$("#frame_member_empe_change_others").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employee&a=edit_frame&action=change_others'
		});

	});
						   
	$("#frame_member_empr_change_profile").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employer&a=edit_frame&action=change_profile'
		});

	});
						   
	$("#frame_member_empr_add_position").click(function(){
	
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employer&a=edit_frame&action=add_position'
		});

	});
						   
	$("#frame_member_empr_change_position").click(function(){
	
		var id_pos = $("#frame_member_empr_change_position").attr('value');
		
		$.fancybox({
			'width'				: 750,
			'height'			: 450,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type': 'iframe',
			'href': 'index.php?m=member_employer&a=edit_frame&action=change_position&id_pos='+id_pos+'&start=1'
		});

	});
	
						   
});
