
var g_pop = null;
function g_close_pop()
{
	g_pop.close();
}
function showLoginDiv(url){
 //   $j.prompt("登录", 
 //       {
 //       url: path + 'jsp/include/login.html',
 //       width: '350',
 //       height: '280'
 //       });
 
 		g_pop=new Popup({ contentType:1, isReloadOnClose:false, width:410, height:150 });
		g_pop.setContent("title","登录");
		g_pop.setContent("contentUrl",url);
		g_pop.build();
		g_pop.show();
}

function showAddcatDiv(url){
	g_pop=new Popup({ contentType:1, isReloadOnClose:false, width:410, height:250 });
	g_pop.setContent("title","添加新分类");
	g_pop.setContent("contentUrl",url);
	g_pop.build();
	g_pop.show();
}

function showUrlTargetDiv(url){
	g_pop=new Popup({ contentType:1, isReloadOnClose:true, width:800, height:600,scrollType:'yes' });
	g_pop.setContent("title","管理收藏链接");
	g_pop.setContent("contentUrl",url);
	g_pop.build();
	g_pop.show();
}

function showImageTargetDiv(url){
	g_pop=new Popup({ contentType:1, isReloadOnClose:true, width:800, height:600,scrollType:'yes' });
	g_pop.setContent("title","管理收藏");
	g_pop.setContent("contentUrl",url);
	g_pop.build();
	g_pop.show();
}

function showjsrun(val,valName){
//	var previewWindow = window.open("","CodeRun","height=600, width=800,resizable=yes, scrollbars=1,status=1,toolbar=0,left=70, top=70");   
//	document.showjsform.target= "CodeRun";
	document.showjsform.code.value = val;
	document.showjsform.codeName.value = valName;
	document.showjsform.submit();
}

//登出
function loginout(){
	LoginAction.loginOut(loginoutback);
}
function loginoutback(){
blogform.submit();
}



