var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4"); var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4"); var ImageOne = new Image(); function ChangeImage() { if(! ImageOne.complete) { setTimeout("ChangeImage()",50); } else { if(ImageOne.width > 140) { document.writeForm.imgPic.src = document.writeForm.userfile.value; document.writeForm.imgPic.width = 140; } else { document.writeForm.imgPic.src = document.writeForm.userfile.value; document.writeForm.imgPic.width = ImageOne.width; } if(ImageOne.height > 160) { document.writeForm.imgPic.src = document.writeForm.userfile.value; document.writeForm.imgPic.height = 160; } else { document.writeForm.imgPic.src = document.writeForm.userfile.value; document.writeForm.imgPic.height = ImageOne.height; } } } function CheckLoadImage() { var aa; var bb; var cc; if(document.writeForm.userfile.value.length > 1 ) { aa = document.writeForm.userfile.value; bb = aa.lastIndexOf('.'); cc = aa.substring(bb+1); cc = cc.toLowerCase(); if(cc != 'gif' && cc != 'jpg' && cc != 'jpeg'){ document.writeForm.imgPic.src = "http://www.songnitour.com/images/fileimg01.gif" ; } else { if(document.writeForm.userfile.value.length > 1 ) { ImageOne.src = document.writeForm.userfile.value ; setTimeout("ChangeImage()",50); } } } } function CheckNullImage(frm){ var aa; var bb; var cc; if(frm.value.length > 1 ) { aa = frm.value; bb = aa.lastIndexOf('.'); cc = aa.substring(bb+1); cc = cc.toLowerCase(); if(cc != 'gif' && cc != 'jpg' && cc != 'jpeg'){ alert("±×¸²ÆÄÀÏ(gif,jpg,jpeg)¸¸ µî·Ï °¡´ÉÇÕ´Ï´Ù."); frm.focus(); return; } } document.writeForm.imgPic.src = "/images/fileimg01.gif" ; } function setVariables() { if (navigator.appName == "Netscape") { v=".top="; dS="document."; sD=""; y="window.pageYOffset"; } else { v=".pixelTop="; dS=""; sD=".style"; y="document.body.scrollTop"; } } function checkLocation() { var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck; if ( bNetscape4plus ) { yMenuFrom = document["layer1"].top; yMenuTo = top.pageYOffset + 286; //³Ý½ºÄÉÀÌÇÁ¿ë ÃÖÃÊ ·¹À̾î ÁÂÇ¥ °ª } else if ( bExplorer4plus ) { yMenuFrom = parseInt (layer1.style.top, 10); yMenuTo = document.body.scrollTop + 270; //ÀͽºÇ÷η¯¿ë ÃÖÃÊ ·¹À̾î ÁÂÇ¥ °ª } timeoutNextCheck = 500; if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) { setTimeout ("checkLocation()", timeoutNextCheck); return; } if ( yButtonFrom != yButtonTo ) { yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 ); if ( yButtonTo < yButtonFrom ) yOffset = -yOffset; if ( bNetscape4plus ) document["divLinkButton"].top += yOffset; else if ( bExplorer4plus ) divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset; timeoutNextCheck =10; } if ( yMenuFrom != yMenuTo ) { yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) /20 ); if ( yMenuTo < yMenuFrom ) yOffset = -yOffset; if ( bNetscape4plus ) document["layer1"].top += yOffset; else if ( bExplorer4plus ) layer1.style.top = parseInt (layer1.style.top, 10) + yOffset; timeoutNextCheck = 10; } setTimeout ("checkLocation()", timeoutNextCheck); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i