  function changeImg(obj) {
  	width = 100;
  	height = 120;
  	var newImg = new Image();
  	newImg.src = obj.src;
  	
    if ( newImg.width > width || newImg.height > height ) {
      var scale;
      var scale1 = newImg.width / width;
      var scale2 = newImg.height / height;

      if(scale1 > scale2){
        scale = scale1; 
        obj.height = newImg.height / scale;
      }else{
        scale = scale2;
        obj.width = newImg.width / scale;
      }
    }
    newImg = null;
  }
  
  function changeImg2(obj, width, height) {
    if ( obj.width > width || obj.height > height ) {
      var scale;
      var scale1 = obj.width / width;
      var scale2 = obj.height / height;

      if(scale1 > scale2){
        scale = scale1;
      }else{
        scale = scale2;
      }

      obj.height = obj.height / scale;
    }
  }
  
  function submitForm()
  {
  	//var strVal = window.form2.searchkey.value;
  	
  	//if (strVal == "'" || 
  	//		strVal == ";" ||
  	//		strVal == "and" || 
  	//		strVal == "(" || 
  	//		strVal == ")" || 
  	//		strVal == "exec" || 
  	//		strVal == "insert" || 
  	//		strVal == "select" || 
  	//		strVal == "delete" || 
  	//		strVal == "update" || 
  	//		strVal == "count" || 
  	//		strVal == "*" || 
  	//		strVal == "%" || 
  	//		strVal == "chr" || 
  	//		strVal == "mid" ||
  	//		strVal == "master" ||
  	//		strVal == "truncate" ||
  	//		strVal == "char" ||
  	//		strVal == "declare" )
  	//{
  	//	alert("·Ç·¨×Ö·û");
  	//	return false;
  	//}
  	
  	//'|
  	//alert(encodeURI(obj.all("searchkeys").value));
  	
  	window.form2.submit();
  	
  }
