﻿//On load function
function on_load() {
get_div_height()
}

function get_div_height(){
    //div height set
    var id = new Array("left","center","right");
    var idHeight = new Array();
    var maxHeight = 0;//追記
    //Get div height
    for(i=0; i < id.length ; i++){
        idHeight[i] = document.getElementById(id[i]).offsetHeight;
	//alert(idHeight[i]);
    }

    //Get Max Height
    for(i=0; i<id.length; i++){
        maxHeight = Math.max(maxHeight, idHeight[i]);
    }

    //Set div Height
    for(i=0; i<id.length; i++){
        document.getElementById(id[i]).style.height = maxHeight + "px";
    }
}

function form_submit() {
	document.search1.submit();

}

