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