οnchange="load_img(this.value,'img_s')"/>
function load_img(p_src, write_id) {
var t_html;
// t_html = "<img src='" + p_src + "'";
if (p_src != '') {
if (write_id == 'img_s') {
t_html = "<img src='" + p_src + "' id='fileChecker' onLoad='adjustImgSize(this)'>";
}
} else {
t_html = "";
}
document.getElementById(write_id).innerHTML = t_html;
}
function adjustImgSize(img_element) {
if (img_element.width > 120) {
img_element.width = 120;
}
if (img_element.height > 120) {
img_element.height = 120;
}
}