document.write('<link type="text/css" rel="stylesheet" href="../qt.css" />\n');document.write('<script type="text/javascript" src="/Qdojo/dojo.js"></script>\n');function dojoIOSync(sURL, Parms, sMethod, sType, bPreventCache){	var theResponse;	var theMethod = sMethod || "POST";	var theType = sType || "text/plain";	var thePreventCache = bPreventCache || false;	var sPassedParms = "";			var ajaxArgs = {		sync: true,		url: sURL,		mimetype: theType,		method: theMethod,		preventCache: thePreventCache,		error: function(type, errObj){		sError = type + '\n';			for(var o in errObj){				sError += o + ' = ' + errObj[o] + '\n';			}			alert(sError);		},		load: function(type, response, evt) {			if(theType.toLowerCase() == "text/xml" && typeof(window.DOMParser) != "undefined"){				response.normalize();			}			if(theType.toLowerCase() == "text/xml" || theType.toLowerCase() == "text/json"){				theResponse = eval(response);			}else{				theResponse = response;			}		}	};		if(typeof(Parms) == "string"){		ajaxArgs.postContent = Parms || "";			}else if(typeof(Parms) == "object"){		ajaxArgs.content = Parms || {};	}			dojo.io.bind(ajaxArgs);	return theResponse;}//validate the email fieldfunction isValidEmail(email){	if(email.indexOf('@',0) < 0 || email.indexOf('.',0) < 0){		return false;	}	else{		return true;	}}function directLogin(){	var poststring = "username=" + dojo.byId("Username").value + "&password=" + dojo.byId("Password").value;		var kw = {		url: "/names.nsf?Login",		postContent: poststring,		load: function(t, txt, e) {			if(txt.indexOf('reasonType') > -1  && txt.indexOf('reasonType') < 800){				dojo.byId("errorSpan").innerHTML = 'Invalid username or password was specified.<br />';			}else{				location.href = '/qdownloads.nsf';			}		},		error: function(t, e) {			//alert(e.message);			location.href = location.href;		}	};	dojo.io.bind(kw);}function resetPassword(){	var sURL = '/qdownloads.nsf' + '/resetPassword?OpenAgent';	var sUsername = dojo.byId("Username").value;	if(sUsername == "" || !(isValidEmail(sUsername))){		//input error		alert("Please enter a valid email address.\nA new password will be created and sent to you.");	}else{		var sResponse = dojoIOSync(sURL, 'id=' + sUsername);				if(sResponse.indexOf('ERROR') > -1){ //We have an ERROR			alert(sResponse.split("ERROR")[1]);		}else{			alert("An email has been sent to you with your new password.");		}	}}function activateMenuButton (divID) {	try {		var div = document.getElementById(divID);		div.className += ' menuButtonSelected';	} catch(e) {}}var homeDb = "/QTHome.nsf";var blogDb = "/QTBlog.nsf";function buttonHomeClicked () {	location.href=homeDb + "/Pages/main.html";}function buttonDownloadsClicked () {	location.href=homeDb + "/Pages/downloads.html";}function buttonBlogClicked () {	location.href=blogDb;}function buttonSupportClicked () {	location.href=homeDb + "/Pages/support.html";}function buttonDocsClicked () {	location.href=homeDb + "/Pages/infocenter.html";}function buttonMoreInfoClicked () {	location.href=homeDb + "/Pages/moreinfo.html";}