function popup(type) {
	var url = "http://storage.counterpath.com/downloads/X-Lite_Win32_1103d_53117.exe?platform=win32&amp;product=xlite";
	var url1 = "software_win.html";
	if (type == 1) {
		url = "http://storage.counterpath.com/downloads/X-Lite_Mac_1011b_39984.dmg?platform=mac&amp;product=xlite";
		url1 = "software_mac.html";
	}
	window.open(url, 'newwindow', 'width=250, height=150, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=auto, resizable=yes, location=yes, status=yes');
	window.location.href = url1;
}

function popup_win(type) {
	var url = "http://storage.counterpath.com/downloads/X-Lite_Win32_1103d_53117.exe?platform=win32&amp;product=xlite";
	var url1 = "config_win.html";
	
	window.open(url, 'newwindow', 'width=250, height=150, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=auto, resizable=yes, location=yes, status=yes');
	window.location.href = url1;
}

function displayCode() {
	var now = new Date();
	var vCode = document.getElementById("vCode");
	vCode.src = "/ValidationCode?" + now.getMilliseconds();
}
