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