function repeat_string(str,num){ var tmp=""; for (var i=0;i