// TS: To send additional variables to 
function xmlhttpPost(strAction, strGuid) {
   var xmlHttpReq = false;
   var self = this;
	var queryString = '?guid=' + escape(strGuid) + '&action=' + escape(strAction);

   // Mozilla/Safari
   if (window.XMLHttpRequest) {
       self.xmlHttpReq = new XMLHttpRequest();
   }
   // IE
   else if (window.ActiveXObject) {
       self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
   }
   self.xmlHttpReq.open('POST', '/mp-loginfromflash.cfm', true);
   self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
   self.xmlHttpReq.onreadystatechange = function() {
       if (self.xmlHttpReq.readyState == 4) {
           updatepage(self.xmlHttpReq.responseText);
       }
   }
   self.xmlHttpReq.send(queryString);
}

function getquerystring(strGuid) {
   qstr = 'guid=' + escape(strGuid);  // NOTE: no '?' before querystring
   return qstr;
}

function updatepage(str){
   document.getElementById("result").innerHTML = str;
}

function viewLumber(ven_id){
	document.location.href = 'wood-lumber.html?id=' + ven_id;
}

function showInMapOfOrigins(ven_id){
	document.location.href = 'discovercenter-mapoforigins.cfm?id=' + ven_id;
}

function doMyProjectsHomePage(inGuid){
	document.location.href = 'mp-home.cfm?inguid=' + inGuid;
}

function specifyProject(project_id){
	//alert(project_id);
	document.location.href = 'mp-specifyveneer.cfm?id=' + project_id;
}

function doForgotPassword(){
	document.location.href = 'mp-forgotpassword.cfm';
}

function learnMore(){
	document.location.href = 'mp-myprojects.cfm';
}

function createAccount(){
	document.location.href = 'mp-register.cfm';
}

function doAlert(inTxt){
	alert(escape(inTxt));
}

