function str_replace(source, search, replacestr){if ((source == null) || (search == null)){return null;}if ((source.length == 0) || (search.length == 0)){ return source; }if ((replacestr == null) || (replacestr.length == 0)){ replacestr = "";}var ls = search.length;var lt = search.length;var Pos = source.indexOf(search, 0);while (Pos >= 0){source = source.substring(0, Pos) + replacestr + source.substring(Pos + ls);Pos = source.indexOf(search, Pos + lt);}return source;}$(document).ready(function(){var h = $('#box1content').css('height');h = str_replace(h, 'px', '');var nh = parseInt(h) + 100;$('#box1').css('height',nh+'px');var h = $('#box2content').css('height');h = str_replace(h, 'px', '');var nh = parseInt(h) + 100;$('#box2').css('height',nh+'px');});
