
function Func_ILogin(){
	var PostV='';
	if($('#Mic1').is('input')){
		if(CHF('#Mic1','请填写登录名！'))return;
		if(CHF('#Mic2','请填写登录密码！'))return;
	}
	$.ajax({
		type: "POST",
		url: "/product/IC_Sale_Save.asp?action=loginchk&rnd="+Math.random(),
		cache: false,
		data:$("#frm_Login").serialize(),
		dataType:"json",
		success: function(data){
			if (data.show!='')alert(data.show);
			if (data.error==0){
	            top.$('#id_loginname').html($('#Mic1').val());
                top.$('#frm_Login').hide();
                top.$('#id_Logined').show();
			}
		},
		error: function(html){
            alert(html.responseText);
		}
	});
}
function Func_IReg(This){
	TL_ShowBoxURL("修改资料","/iframe/user_edit_corp.html",400,340);
}
function Func_ILoginOut(ty){
	$.ajax({
		type: "POST",
		url: "/product/IC_Sale_Save.asp?action=loginout&rnd="+Math.random(),
		cache: false,
		dataType:"json",
		success: function(data){
			if (data.error==0){
                top.$('#id_Logined').hide();
                top.$('#frm_Login').show();
			}
		},
		error: function(html){
			alert("页面错误！");
		}
	});
}
function CHF(ipt,info){
	if ($(ipt).val()==''){
		alert(info);
		$(ipt).focus();
		return true;
	}
	else
		return false;
}
