﻿// JScript 文件

//弹出登录框
function login(){    
if(oEditor.document.body.innerHTML=="")
{
    return showDialog("评论内容不能为空！\r\n\r\n");return false;
}
	
// var html =' <table width=\"450\" height=\"300\" id =\"login\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\<tr >\ <td><iframe frameborder=0 scrolling=no width=450 height=300 '; //构造字符串
//     html +='src=\"/loging.aspx\"';
//     html += '\"></iframe></td> </tr></table>';//构造完毕
//	 createDiv('快速登录',html,450,300);	
//document.getElementById("postReplyContext").value=oEditor.document.body.innerHTML;	
 var html =' <table width=\"450\" height=\"300\" id =\"login\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\<tr >\ <td><iframe frameborder=0 scrolling=no width=450 height=300 '; //构造字符串
     html +='src=\"/quick_log.aspx\"';
     html += '\"></iframe></td> </tr></table>';//构造完毕
	 createDiv('快速登录/注册',html,450,300);	


}
////弹出登录框
//function login1(){ 
//var oEditor = FCKeditorAPI.GetInstance('<%=context1.ClientID%>');   
//if(oEditor.EditorDocument.body.innerHTML.Trim()=="")
//{
//    return showDialog("留言内容不能为空！\r\n\r\n");return false;
//}
//	
//// var html =' <table width=\"450\" height=\"300\" id =\"login\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\<tr >\ <td><iframe frameborder=0 scrolling=no width=450 height=300 '; //构造字符串
////     html +='src=\"/loging.aspx\"';
////     html += '\"></iframe></td> </tr></table>';//构造完毕
////	 createDiv('快速登录',html,450,300);	
////document.getElementById("postReplyContext").value=oEditor.document.body.innerHTML;	
// var html =' <table width=\"450\" height=\"300\" id =\"login\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\<tr >\ <td><iframe frameborder=0 scrolling=no width=450 height=300 '; //构造字符串
//     html +='src=\"/quick_log.aspx\"';
//     html += '\"></iframe></td> </tr></table>';//构造完毕
//	 createDiv('快速登录/注册',html,450,300);	

//}
//弹出登录框
function login2(){    
if(oEditor.document.body.innerHTML=="")
{
    return showDialog("留言内容不能为空！\r\n\r\n");return false;
}
//document.getElementById("context1").value=oEditor.document.body.innerHTML;	
// var html =' <table width=\"450\" height=\"300\" id =\"login\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\<tr >\ <td><iframe frameborder=0 scrolling=no width=450 height=300 '; //构造字符串
//     html +='src=\"/loging.aspx\"';
//     html += '\"></iframe></td> </tr></table>';//构造完毕
//	 createDiv('快速登录',html,450,300);	
 document.getElementById("context1").value=oEditor.document.body.innerHTML;
 var html =' <table width=\"450\" height=\"300\" id =\"login\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\<tr >\ <td><iframe frameborder=0 scrolling=no width=450 height=300 '; //构造字符串
     html +='src=\"/quick_log.aspx\"';
     html += '\"></iframe></td> </tr></table>';//构造完毕
	 createDiv('快速登录/注册',html,450,300);	
}
//弹出登录框
function login3(){    

if(KE.util.getData('content1')=="")
{
    return showDialog("回复内容不能为空！\r\n\r\n");return false;
}
    document.getElementById("postReplyContext").value=KE.util.getData('content1');
    var contentinfo=KE.util.getData('content1');
     var html =' <table width=\"450\" height=\"300\" id =\"login\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\<tr >\ <td><iframe frameborder=0 scrolling=no width=450 height=300 '; //构造字符串
     html +='src=\"/quick_log.aspx?contentinfo='+contentinfo+'\"';
     html += '\"></iframe></td> </tr></table>';//构造完毕
	 createDiv('快速登录/注册',html,450,300);	

}

