var type = 1; var recordCount= 5076133; if (type > 0) { document.write(recordCount); }