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