function MainLayerResize(){
	try
	{
		if(parent.MainLayer){
			parent.MainLayer.style.width = document.noimg.width;
			parent.MainLayer.style.height = document.noimg.height+10;
	//		parent.MainLayer.style.height = document.body.scrollHeight+10;
			parent.document.body.scrollTop=0;
		}
	}
	catch (e)
	{
		return;
	}
}


function MainLayerResize2(h){
  var h;
	if(parent.ifmain.MainLayer)
		parent.ifmain.MainLayer.style.height = h;

}

function MainLayerResize5(){

	if(parent.MainLayer){
		parent.MainLayer.style.height = document.noimg.height+200;
		parent.MainLayer.style.width = document.noimg.width;
		parent.document.body.scrollTop=0;
	}
}

function re(id,item) {
	msg=open("http://mcp.hellounse.com/NewContents/popup/list.asp?ID="+id+"&name="+item,"re","scrollbars=no,width=400,height=300,resizable=no");
	msg.focus();
}

function checkKor(){
	if(event.keyCode>=33 && event.keyCode<=126){
		return false;
	}
}

function nospace()
{
	if(event.keyCode==32)
		event.returnValue=false;
	
}

function isNumerics(str)
{
  var checkStr = str.value;
  var checkOK = "0123456789";
  var isnumeric = false;

  for (i = 0;  i < checkStr.length;  i++)
  {
     ch = checkStr.charAt(i);

     isnumeric = false;
     for (j = 0;  j < checkOK.length;  j++)
     {
       if (ch == checkOK.charAt(j))
       {
           isnumeric = true;
       }
     }

     if ( isnumeric == false )
         return false;
  }

  return true;

}

