/* document.oncontextmenu = new Function ('return false'); document.ondragstart = new Function ('return false'); document.onselectstart = new Function ('return false'); document.cookie="Name=Value; httpOnly"; */ function resize(){ var doc = document.body; if(doc.offsetHeight == 0){ }else{ pageheight = doc.offsetHeight; parent.document.getElementById("ifrm").height = pageheight + 30 + "px"; } //console.log("fund_common:"+doc.offsetHeight); } /** remove xss */ function cfn_removeXss(str){ str = str.replace(/\/g,""); str = str.replace(/\"/g,""); str = str.replace(/\'/g,""); str = str.replace(/\;/g,""); str = str.replace(/\(/g,""); str = str.replace(/\)/g,""); str = str.replace("/",""); str = str.replace(/document/gi,""); str = str.replace(/cookie/gi,""); str = str.replace(/alert/gi,""); str = str.replace(/script/gi,""); return str; } /** 소문자 변환 */ function cfn_toLowerCase(str){ if($.trim(str) == null || $.trim(str) == "") return str; str += ""; // null방지 return str.toLowerCase(); }