// JavaScript Document
function ajGet(Url,Value,Direc){
	$.ajax({
		type: "GET",
		url: Url+".php",
		cache: false,
		data: "date="+Value+"&stamp="+new Date().getTime(),
		success: function(data){
			if (Direc=="l"){
				timeLineL.filters[0].apply();
				$("#timeLineR").html("");
				$("#timeLineL").html(data);
				timeLineL.filters[0].play();
			}else{
				timeLineR.filters[0].apply();
				$("#timeLineL").html("");
				$("#timeLineR").html(data);
				timeLineR.filters[0].play();
			}
		}
	});
}

function ajMGet(Value,Direc){
	$.ajax({
		type: "GET",
		url: "monthLine.php",
		cache: false,
		data: "date="+Value+"&stamp="+new Date().getTime(),
		success: function(data){
			if (Direc=="l"){
				timeLineML.filters[0].apply();
				$("#timeLineMR").html("");
				$("#timeLineML").html(data);
				timeLineML.filters[0].play();
			}else{
				timeLineMR.filters[0].apply();
				$("#timeLineML").html("");
				$("#timeLineMR").html(data);
				timeLineMR.filters[0].play();
			}
		}
	});
}

function ajMGet2(){
	$.ajax({
		type: "GET",
		url: "/monthLine.php",
		cache: false,
		data: "stamp="+new Date().getTime(),
		success: function(data){
			top.document.getElementById("timeLineML").innerHTML=data;
			window.location=("?");
		}
	});
}

function ajGetEdit(){
	$.ajax({
		type: "GET",
		url: "/webinc/blogText.php",
		cache: false,
		data: "stamp="+new Date().getTime(),
		success: function(data){
			$("#blogText").html(data);
		}
	});
}

function ajBlogSubmit(){
	var lgStatus="";
	$.ajax({
		type: "GET",
		url: "/login/lgStatus.php",
		cache: false,
		data: "stamp="+new Date().getTime(),
		success: function(data){
			if (!data){
				jsFsrc('/login/login.php');
				openLayer("SISYS","test_con");
				return;
			}
			$("form").submit();
		}
	});
}

function ajImg(){
	var lgStatus="";
	$.ajax({
		type: "GET",
		url: "/login/lgStatus.php",
		cache: false,
		data: "stamp="+new Date().getTime(),
		success: function(data){
			if (!data){
				jsFsrc('/login/login.php');
				openLayer("SISYS","test_con");
				return;
			}
			jsIsrc('/webinc/img.php');
			openLayer("SIIMG","img_con");
		}
	});
}
//
//function ajBlogSubmit(lgStatus){
//	if (!lgStatus){
//		openLayer("SISYS","test_con");
//		return;
//	}
//	$("form").submit();
//}

//function ajPost(lgStatus){
//	if (!$.trim($("#b_text").val())){
//		$("#b_text").focus();
//		return;
//	}
//	if (!lgStatus){
//		openLayer("SISYS","test_con");
//		return;
//	}
//	$.ajax({
//		type: "POST",
//		url: "member/processing.php",
//		cache: false,
//		data: "act=curtblog&b_text="+$("#b_text").val()+"&stamp="+new Date().getTime(),
//		success: function(data){
//			window.location=("member/");
//			$("#blogText").html(decodeURI(data));
//		}
//	});
//}

