var now = new Date();
var year = now.getFullYear();

function printYear() {
  document.write(year);
}

function OpenCertDetails()
    {
        thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USQUAL177','anew', config='height=350,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
    }

function launchWin (url,name,features) {
	var newWin = window.open(url,name,features)
	newWin.focus();
}

function require_it(f, n)
{
	if(f.value==null || f.value == "")
		return n;
	else return "";
}

function check_form()
{
	var err = "";
	with(document.password) {
	err +=
		require_it(account, "User-name is missing\n") +
		require_it(password, "Password is missing\n");
	if(agree.checked == false)
		err += "You must confirm that you have read and agreed to the Terms of Service and Privacy Policy.\n";
	if(err != "")
		alert("Cannot login:\n\n"+err)
	else
		submit();
	}
}

