
function isNum(){ 
   var key = event.keyCode; var messageArea = document.getElementById("ssnMessage"); 
   if(!(key==8||key==9||key==13||key==46||key==144||(key>=48&&key<=57)||key==110||key==190)){ 
        alert('¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù'); 
        event.returnValue = false; 
   } 
}

function clearField(field){
	if (field.value == field.defaultValue) {
		field.value = '';
	}
}

function checkField(field){ 
	if (field.value == '') {
		field.value = field.defaultValue;
	}
}


function doResize() 
{ 
  document.all("myframe").height = myframe.document.body.scrollHeight+5; 
  document.all("myframe").width = myframe.document.body.scrollWidth; 
} 

    function go(the)
	{
	  window.open("http://" + the,"_blank");
	}



function H_ImageSize(pic0) {
	pic = new Image();
	pic.src=pic0;
	eval(pic).height;
	eval(pic).width; 

	return eval(pic).height;
}

function W_ImageSize(pic0) {
	pic = new Image();
	pic.src=pic0;
	eval(pic).height;
	eval(pic).width; 

	return eval(pic).width;
}



//»çÁø ¹Ì¸® º¸¿©ÁÖ±â ////
var ImageOne = new Image();
function ChangeImage(objImg,showPic) {

	
	if(objImg.value.length > 1) {
		ImageOne.src = objImg.value;
			var f = objImg.value;

			if (f != "") {
					var r=f.match(/\.[^\.]*$/);
					if (r != ".jpg" && r != ".gif" && r != ".JPG" && r != ".GIF" && r != ".bmp")
					{
					  alert("»çÁø¸¸ ¿Ã·ÁÁÖ¼¼¿ä");
					  return false;
					}
				} 


		document.all(showPic).src = ImageOne.src;

    }		
		
}

///////////////  »çÁø ¹Ì¸®º¸¿©ÁÖ±â ³¡ /////////////////////




////////////////////    ¾÷·Îµå½Ã º¸¿©ÁÜ Ã¢À» º¸¿©ÁÜ ÀÏ¹Ý..  ÆíÁý±â////////////////////////////
function send(myfile,myaction,myurl){
	strAppVersion = navigator.appVersion; 

			if (document.all(myfile).value != "") {
				if (strAppVersion.indexOf('MSIE')!=-1 && 
					strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) { 

					winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes"; 
					window.showModelessDialog(myurl + "/Progress/show_progress.asp?nav=ie", 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(myurl + "/Progress/show_progress.asp?nav=ns",null,winstyle);				
				} 
		        
				//mySlen = document.upform.my_file.value.length()
				//alert(mySlen)
          } 
    document.upform.action = myaction;
	document.upform.submit();

}
///////////////////////////////////////


////////////////////    ¾÷·Îµå½Ã º¸¿©ÁÜ Ã¢À» º¸¿©ÁÜ HTML  ÆíÁý±â////////////////////////////
function nofile_send(myaction){

	    strAppVersion = navigator.appVersion; 
        document.all.editBox.editmode = "html";  //³»¿ëÀ» text·Î ¹Ù²Ù°í 
        content = document.all.editBox.text;
	    document.all.editBox.editmode = "text";  //³»¿ëÀ» html·Î ¹Ù²Ù°í
	    document.upform.Content.value = document.all.editBox.text;  //¸ÖÆ¼Å¸ÀÔÀ¸·Î ÀÐ°Ô ¸¸µçµÚ
		document.upform.action = myaction;

		document.upform.submit();

}
///////////////////////////////////////


function Html_send(myfile,myaction,myurl){

	strAppVersion = navigator.appVersion; 

			if (document.all(myfile).value != "") {
				if (strAppVersion.indexOf('MSIE')!=-1 && 
					strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) { 

					winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes"; 
					window.showModelessDialog(myurl + "/Progress/show_progress.asp?nav=ie", 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(myurl + "/Progress/show_progress.asp?nav=ns",null,winstyle);				
				} 
		        
				//mySlen = document.upform.my_file.value.length()
				//alert(mySlen)
          } 
        document.all.editBox.editmode = "html";  //³»¿ëÀ» text·Î ¹Ù²Ù°í 
        content = document.all.editBox.text;
	    document.all.editBox.editmode = "text";  //³»¿ëÀ» html·Î ¹Ù²Ù°í
	    document.upform.Content.value = document.all.editBox.text;  //¸ÖÆ¼Å¸ÀÔÀ¸·Î ÀÐ°Ô ¸¸µçµÚ
		document.upform.action = myaction;

		document.upform.submit();

}
///////////////////////////////////////

   

////////////////////    ¾÷·Îµå½Ã º¸¿©ÁÜ Ã¢À» º¸¿©ÁÜ HTML  2°³ ÆÄÀÏ µ¿½Ã ÆíÁý±â////////////////////////////
function Html2send(myfile1,myfile2,myaction,myurl){
	strAppVersion = navigator.appVersion; 

			if (document.all(myfile1).value != "") {
				if (strAppVersion.indexOf('MSIE')!=-1 && 
					strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) { 

					winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes"; 
					window.showModelessDialog(myurl + "/Progress/show_progress.asp?nav=ie", 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(myurl + "/Progress/show_progress.asp?nav=ns",null,winstyle);				
				} 
		        
				//mySlen = document.upform.my_file.value.length()
				//alert(mySlen)
          } 

			if (document.all(myfile2).value != "") {
				if (strAppVersion.indexOf('MSIE')!=-1 && 
					strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) { 

					winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes"; 
					window.showModelessDialog(myurl + "/Progress/show_progress.asp?nav=ie", 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(myurl + "/Progress/show_progress.asp?nav=ns",null,winstyle);				
				} 
		        
				//mySlen = document.upform.my_file.value.length()
				//alert(mySlen)
          } 


		document.all.editBox.editmode = "html";  //³»¿ëÀ» text·Î ¹Ù²Ù°í 

//        content = document.all.editBox.text;
		document.all.editBox.editmode = "html";  //³»¿ëÀ» text·Î ¹Ù²Ù°í 
	    document.all.editBox.editmode = "text";  //³»¿ëÀ» html·Î ¹Ù²Ù°í
	    document.upform.Content.value = document.all.editBox.text;  //¸ÖÆ¼Å¸ÀÔÀ¸·Î ÀÐ°Ô ¸¸µçµÚ
		document.upform.action = myaction;
		document.upform.submit();

}
///////////////////////////////////////

