$(function(){
loadingNewsList("rsokay.com","1");
});

function isEmail(v){
    return /\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/.test(v);
 }
function  trim(str){
return  str.replace(/(^\s*)|(\s*$)/g,"");
}

function  loadingNewsList(websiteName,currentPage){
$("#loadingNews").show();
var  currentPath=$("#currentPath").val();
var  loginURL=currentPath+"/news/loadingNews.jsp?websiteName="+websiteName+"&currentPage="+currentPage;
$.ajax({
		type: "POST",
		url: loginURL,
		success: function(msg){
		     var  loginResult=trim(msg);
		      $("#newsList").html(loginResult);
		      $("#loadingNews").hide();
		      $("#newsList").show();
		 }
		});

}
