var resultprint = ''; function ShowForm(){ document.write(resultprint); }