/**
EMR_BROWSERÀÇ JAVASCRIPT ÆÄÀÏ
**/
//ÇöÀçºñÀ². 100%·Î Çҽà À̹ÌÁö ±úÁü¹®Á¦·Î 101%·Î ¼¼ÆÃ
var nowZoom = 101;
// ÃÖ´ëºñÀ²(500À¸·ÎÇϸé 5¹è Ä¿Áø´Ù)
var maxZoom = 300;
// ÃÖ¼ÒºñÀ²
var minZoom = 80;
var TFWin = null;
var domain = "";
var lockyn = "N";
var emrview_maxWidth = 840;
/**
»óÆäÀÌÁö¸¦ ÃÖ»ó´ÜÀ¸·Î ¿Å±â±â
**/
function go_top(){location.href='#top';}
/**
´ÙÀ½ÆäÀÌÁö È£Ãâ
Ŭ¸¯ÇÑ '´ÙÀ½ÆäÀÌÁö' ´Â ȸ鿡¼ Áö¿î´Ù.
**/
function nPage(page) {
var obj = document.getElementById('tr' + page);
if(obj){
obj.innerHTML = '';
obj.style.display='none' ;
}
loadHTML(page);
}
/**
ÇöÀçÆäÀÌÁö¿¡ ÀÖ´Â ckeckbox ¸ðµÎ üũ / ¶Ç´Â ÇØÁ¦
**/
function selectAll(bool){
var ckk = document.getElementsByName('ck');
for(i=0; i");
win.document.write("");
win.document.write("");
win.document.write(document.getElementById('div' + ckvalue_arr[ckvalue_arr.length-1]).innerHTML);
win.document.title = "EMR Browser " + ckvalue_arr[0];
win.document.close();
sum++;
if(win.document.getElementById('nextpagelink'))
win.document.getElementById('nextpagelink').style.display='none';
if(win.document.getElementById('checkid'))
win.document.getElementById('checkid').style.display='none';
}
}
if(checknum == 0){ alert('Ã¼Å©ÇØ ÁÖ¼¼¿ä.');}
}
/**
ȸéÈ®´ë
**/
function zoomIn() {
if (nowZoom < maxZoom) {
nowZoom += 10; //25%¾¿ Ä¿Áø´Ù.
} else {
return;
}
document.getElementById('ALLPAGE').style.zoom = nowZoom + '%';
}
/**
ȸéÃà¼Ò
**/
function zoomOut() {
if (nowZoom > minZoom) {
nowZoom -= 10; //25%¾¿ ÀÛ¾ÆÁø´Ù.
} else {
return;
}
document.getElementById('ALLPAGE').style.zoom = nowZoom + '%';
}
/**
±âº»È¸é ºñÀ²Àº 101%·Î ÇÑ´Ù. À̹ÌÁö°¡ Àß ³ª¿À°Ô Çϱâ À§ÇÔ
**/
function zoomDeafault() {
document.getElementById('ALLPAGE').style.zoom = nowZoom + '%';
}
/**
¿ÞÂÊ ÇÁ·¹ÀÓÀÇ ¸µÅ©ºÎºÐ »ý¼º ¹× name ¸µÅ©¸¦ ´Þ¾Æ¼ ¹Ù·Î°¡±â½ÄÀ¸·Î Ãß°¡
**/
function writeLink(view, link){
var linkHM = ''+view+'' ;
//leftObj = top.left.document.getElementById('leftDiv');
//k = top.left.document.createElement('div');
leftObj = document.getElementById('linkinDiv');
k = document.createElement('div');
k.style.paddingTop = "5";
k.style.paddingRight = "0";
k.style.paddingBottom = "0";
k.style.paddingLeft = "5";
leftObj.appendChild(k);
k.innerHTML =linkHM;
//innerHTMLJS(k,leftHM);
}
/**
ajax ¾È¿¡¼ javascriptÈ£Ãâ(writeLink) ÇϹǷΠ±âº»ÀûÀ¸·Î µ¿ÀÛÇÏÁö ¾ÊÀ½
ajax ¾È¿¡¼ javascript¸¦ È£ÃâÇßÀ»½Ã ÀÛµ¿ÇÏ°Ô ¸¸µå´Â functionÀÓ
**/
function innerHTMLJS(obj,content) {
// if(typeof(obj) != 'object' && typeof(content) != 'string') return;
obj = (typeof obj=='string') ? document.getElementById(obj) : obj;
// avoid IE innerHTML bug add.
content = '
' + content.replace(/<\/?head>/gi, '')
.replace(/<\/?html>/gi, '')
.replace(/';
obj.innerHTML = content;
var scripts = obj.getElementsByTagName('script');
if(scripts == false) return true; // no node script == no problem !
for(var i=0; i 0) { /* boucle de copie des attributs du script dans le nouveau node */
for(var j in scripts[i].attributes) {
if(typeof(scripts[i].attributes[j]) != 'undefined'
&& typeof(scripts[i].attributes[j].nodeName) != 'undefined' /* IE needs it */
&& scripts[i].attributes[j].nodeValue != null
&& scripts[i].attributes[j].nodeValue != '' /* IE needs it ou il copie des nodes vides */)
{
scriptclone.setAttribute(scripts[i].attributes[j].nodeName, scripts[i].attributes[j].nodeValue);
}
}
}
scriptclone.text = scripts[i].text; // on copie le corp du script
/*
la j'ai pas compris, si je ne return pas sous opera ici : le javascript s'execute 2 fois -
mais la : le script s'execute mais n'est pas a ce moment la place entre les balises scripts !
et si je return juste apres le innerHTML, le script n'est pas execute... ---o(<
*/
//if (navigator.userAgent.indexOf('Opera')>0) { return; }
/* on force le remplacement du node par dom, qui a pour effet de forcer le parsing du javascript */
scripts[i].parentNode.replaceChild(scriptclone, scripts[i]);
}
return true;
}
/*
copy/paste ±â´É ±¸ÇöÀ» À§ÇØ º¸¾È¸ðµâÀÇ ¼³Ä¡ ¿©ºÎ¸¦ üũ
*/
function SecuCheck(){
try
{
var WebSecurer = document.all("WebSecurer");
var DSstate = WebSecurer. DSInstalled;
if( DSstate != 1)
{
alert("º¸¾È¸ðµâÀÌ ¼³Ä¡ µÇÁö ¾Ê¾Ò½À´Ï´Ù.");
//window.location.replace("ErrorPage.html")
}
}
catch(e)
{
alert("º¸¾È¸ðµâÀÌ ¼³Ä¡ µÇÁö ¾Ê¾Ò½À´Ï´Ù.");
//window.location.replace("ErrorPage.html")
}
}
/*
name link·Î À̵¿
*/
function link(w){
var ll = location.toString();
var lo = ll.split('#');
//top.content.location.href = lo[0] + '#' + w;
location.href = lo[0] + '#' + w;
}
/*
bookmark insert¸¦ À§ÇØ ÇÊ¿äÇÑ ÀÎÀÚ°ªÀ» ¼¼ÆÃ
*/
function getBookmarkParameter(){
var checknum = 0;
var retValue = "";
var ckk = document.getElementsByName('ck');
for(i=0; ierror code : "+id;
}
}
}
function emrview_resizeImage(img, maxWid)
{
if (maxWid == null)
maxWid = emrview_maxWidth;
if (img.width > maxWid) {
img.height = img.height * maxWid / img.width;
img.width = maxWid;
}
}
//--------------------------------------------------------------------------------------------------------
//ÇÁ¸°Æ® °ü·Ã
function initPrint(){
if (!secmgr.object){
return;
}
else{
//UpdateViewsourceLinks();
/*
document.expando = true;
document.printingRules = {
//diffFirstPageHeadFoot: true,
allPagesHeadFoot: true,
pageRange: "",
printingPass: "all",
//printingPass: "odd&even",
mirrorMargins: true,
setupButton: "show",
//setupButton: "hidden",
setupExtraButton: "enabled"
}
*/
//document.printingRules.extraFirstPageFooter = "
EXTRA FIRST PAGE FOOTER AS IMAGE
";
//document.printingRules.firstPageHeader = " --- Header for page &p --- ";
//document.printingRules.firstPageFooter = " --- Footer for page &p --- ";
//document.printingRules.allPagesHeader = " --- Header for page &p ---";
//document.printingRules.allPagesFooter = " --- Footer for page &p ---";
/*
// Usually the value of height for headers/footers
// is automatically calculated.
// But we may decide to specify an exact value as below:
document.firstHeaderHeight = 180;
document.firstFooterHeight = 180;
document.extraFirstFooterHeight = 160;
document.allHeaderHeight = 120;
document.allFooterHeight = 120;
*/
//factory.printing.SetPrintScale(120);
// factory.printing.paperSize = "Letter (8.5 x 11in.)";
factory.printing.header = "";
factory.printing.footer = "";
//factory.printing.onuserprintpreview = Preview;
//factory.printing.printBackground = true;
}
}
function Preview(instcd, instnm, tmppid, hngnm, rrgstno, pTime, usernm, plcenm){
//factory.printing.header = instnm + " " + tmppid + " " + hngnm + " " + rrgstno;
//factory.printing.footer = "&p/&P Ãâ·Â : " + pTime + " " + usernm + " " + plcenm + " ÀÌ ¼½ÄÀº »çº»ÀÔ´Ï´Ù.(¿øº» ´ëÁ¶ÇÊ)";
//factory.printing.Preview();
document.title = instnm + " " + tmppid + " " + hngnm;
// À¥ ºê¶ó¿ìÀú ÄÁÆ®·Ñ »ý¼º
var WebBrowser = '';
// À¥ ÆäÀÌÁö¿¡ °´Ã¼ »ðÀÔ
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
// if intOLEparamÀÌ Á¤ÀǵǾî ÀÖÁö ¾ÊÀ¸¸é µðÆúÆ® °ª ¼³Á¤
//if ( ( ! intOLEparam ) || ( intOLEparam < -1 ) || (intOLEparam > 1 ) )
intOLEparam = 1;
// ExexWB ¸Þ½îµå ½ÇÇà
WebBrowser1.ExecWB(7, intOLEparam);
// °´Ã¼ ÇØÁ¦
WebBrowser1.outerHTML = "";
//window.print();
}
function DoPrint(){
factory.printing.Print();
}
//------------------------------------------------------------
function copyBrowser(){
var rng = document.selection.createRange();
var str = new String(rng.text);
return str;
}