// 덧글 삭제 레이어 보기
function viewCommentDelete(hypCommentDel, txtCPasswordDel, btnCCommentDel)
{
document.getElementById(hypCommentDel).style.display = "none";
document.getElementById(txtCPasswordDel).style.display = "inline";
document.getElementById(btnCCommentDel).style.display = "inline";
}
// 덧글 저장 유효성 검사
function IsCommentValid(type)
{
if (type == "user")
{
// 회원 로그인 후
var txtComment = '_ctl0__ctl0_txtComment';
txtComment = document.getElementById(txtComment);
if (txtComment.value.replace(/ /g, "") == "")
{
DisplayMessage("내용을 입력하세요", txtComment);
return false;
}
}
else
{
// 실명인증, G-Pin인증 후
var txtCName = '_ctl0__ctl0_txtCName';
var txtCPassword = '_ctl0__ctl0_txtCPassword';
var hdnCIdentifyNo = '_ctl0__ctl0_hdnCIdentifyNo';
var txtCComment = '_ctl0__ctl0_txtCComment';
txtCName = document.getElementById(txtCName);
txtCPassword = document.getElementById(txtCPassword);
hdnCIdentifyNo = document.getElementById(hdnCIdentifyNo);
txtCComment = document.getElementById(txtCComment);
if (txtCName.value.replace(/ /g, "") == "" || hdnCIdentifyNo.value.replace(/ /g, "") == "")
{
DisplayMessage("실명인증 후 이용하세요");
return false;
}
else if (txtCPassword.value.replace(/ /g, "") == "")
{
DisplayMessage("패스워드를 입력하세요", txtCPassword);
return false;
}
else if (txtCComment.value.replace(/ /g, "") == "")
{
DisplayMessage("내용을 입력하세요", txtCComment);
return false;
}
}
return ConfirmMessage("저장 하시겠습니까?");
}
// 유효성 검사
function IsValid(type)
{
var form = document.forms[0];
// ClientID
var txtTitle = '_ctl0__ctl0_txtTitle';
var txtContents = '_ctl0__ctl0_txtContentsWrite';
var ddlClasses = '_ctl0__ctl0_ddlClassNoWrite';
txtTitle = document.getElementById(txtTitle);
txtContents = document.getElementById(txtContents);
ddlClasses = document.getElementById(ddlClasses);
// 유효성 검사
if (txtTitle.value.replace(/ /g, "") == "")
{
DisplayMessage("제목을 입력하세요", txtTitle);
return false;
}
else if (txtContents != null && txtContents != "undefined" && txtContents.value.replace(/ /g, "") == "")
{
DisplayMessage("내용을 입력하세요", txtContents);
return false;
}
else if (ddlClasses != null && ddlClasses != "undefined" && ddlClasses.selectedIndex == 0)
{
DisplayMessage("분류를 선택하세요", ddlClasses);
return false;
}
// 첨부파일이 있으면 업로드 진행창을 표시한다.
var ele = document.body.getElementsByTagName("input");
var cnt = 0;
// 첨부파일 갯수를 센다.
for (i = 0 ; i < ele.length ; i++)
{
if (ele[i].getAttribute("type") == "file")
{
if (ele[i].value != "")
cnt++;
}
}
if (cnt > 0)
{
var req = location.href;
var idx = req.lastIndexOf("ProgressID");
if (idx != -1)
req = req.substr(0, idx - 1);
var ProgressID = (new Date()).getTime() % 1000000;
if (ProgressID == 0) ProgressID = 1000000;
var strAppVersion = navigator.appVersion;
if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4)
{
winstyle = "dialogWidth=385px; dialogHeight:130px; center:yes";
window.showModelessDialog("/Common/ShowProgressIE.aspx?ProgressID=" + ProgressID, null, winstyle);
}
else
{
winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-110)/2);
winstyle="width=380,height=110,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos;
window.open("/Common/ShowProgressNN.aspx?ProgressID=" + ProgressID, null, winstyle);
}
document.forms[0].action = req + "&ProgressID=" + ProgressID;
}
return true;
}
내용보기 테이블
|
|
작성일 : 2009-03-03 |
| 조회수 : 610 | |
|
대구경북경제자유구역청 홍보영상물(7분30초) |
|
|
|
|
| |