
function tfaDoFormSubmit(url,params,method,target){
	//alert(params);
	var formElem=document.createElement("form");
	document.body.appendChild(formElem);formElem.setAttribute("method", method);
	var paramArray=params.split("&");
	for (var i=0; i < paramArray.length; i++) {
		var name=paramArray[i].substring(0, paramArray[i].indexOf("="));
		var value=paramArray[i].substring(paramArray[i].indexOf("=") + 1, paramArray[i].length);
		var inputElem=document.createElement("input");inputElem.setAttribute("type", "hidden");inputElem.setAttribute("name", name);
		inputElem.setAttribute("value", value);
		formElem.appendChild(inputElem);
	}
	formElem.setAttribute("action", url);
	if (target)
		formElem.setAttribute("target",target);
	formElem.submit();
};


var  tfaSSORequest= function(purl){

	var handler;

	if (purl.indexOf("www.everyone.net") >-1)
    {

		handler = function(response){ window.open (response,"_everyoneEmail"); }
		

    } 

	//talon currently not supported

//	else if (purl.indexOf("www.talnavigator.org") >0)    {		
//	
//		handler = function(response){   alert(1);
//			var authParam=[];
//			var paramArray=response.split("&");
//			for (var i=0; i < paramArray.length; i++) {
//				var name=paramArray[i].substring(0, paramArray[i].indexOf("="));
//				var value=paramArray[i].substring(paramArray[i].indexOf("=") + 1, paramArray[i].length);
//				authParam[i]=value;
//			}
//
//			var handler2 = function(response){ alert(2); window.open("http://www.talnavigator.org/talon/tfa","_talon"); }		
//			tfaAjaxBind("http://www.talnavigator.org/talon/tfa",null,"POST", handler2,authParam[0],authParam[1]);
//
//		}
//
//    }
	
	else {
	
		var authUrl;
		var authMethod="POST";
		if (purl.indexOf('www.ecampusrecruiter3.com') >-1)
		{
			authUrl="http://www.ecampusrecruiter3.com/teachforamerica/index.php?script=local-check";
		} 
	else if (purl.indexOf('ec.volunteernow.com') >-1)
		{
			authUrl="https://ec.volunteernow.com/recruiter/index.php";
			authMethod = "GET";
		} 
		//var strWinName="volunteerNowWin";		
		//handler =function(response){  g_openWindow("",strWinName);var a = window.setTimeout(function(){tfaDoFormSubmit(authUrl,response,authMethod,strWinName)}, 500); } ;
		
		handler =function(response){  tfaDoFormSubmit(authUrl,response,authMethod,"_blank"); } ;

	}

	var hand = tfautil.xhrPost({
		url: "/net/TfaSSO.jsp",
		handleAs: "text",
		content: {ssourl:purl}
	});

	hand.addCallback(handler);

	hand.addErrback(function(err){
		alert(err);
	});


};


function accessLte() {

	var handler = function(response){ if (response.indexOf("/net")>-1)
	{
		location.href=response;
	}
	else 
		window.open (response,"_everyoneEmail"); }

   var xhrPost = tfautil.xhrPost({
		url: "/net/AccessLTE.jsp",
		handleAs: "text",
		content: {}
	});

	xhrPost.addCallback(handler);

	xhrPost.addErrback(function(err){
		alert(err);
	});

} 








// +++ Ajax Loader +++ //
function g_fncAjaxLoader(n_objContainer,n_objContent, n_strMessage) {
	this.objContainer = n_objContainer;
	//this.objContent = n_objContent;
	this.objSpinner = null;
	this.strSpinnerId = "spinnerDiv";
	this.strImgId = "spinnerImg";
	this.strImgSrc = tfautil.v.strImgPath + "ajaxloader.gif";
	
	if(n_strMessage){
		this.strMessage = n_strMessage;
	}
	else{
		this.strMessage = "Loading...";
	}
	this.fncInit();
}

	g_fncAjaxLoader.prototype.fncInit = function() {
		var m_objDiv = document.createElement("div");
		m_objDiv.className="loaderContainer";
		
		var m_objDiv2 = document.createElement("div");
		m_objDiv2.innerHTML = "<span><img src='"+ tfautil.v.strImgPath +"loadingbar.gif'/> " + this.strMessage + "</span>";
		m_objDiv2.className = "loader";
		m_objDiv.appendChild(m_objDiv2);		
		
		//this.objContainer.insertBefore(m_objDiv,this.objContent);
		if(this.objContainer.childNodes && this.objContainer.childNodes.length>=0){
			this.objContainer.insertBefore(m_objDiv,this.objContainer.childNodes[0]);
		}
		else{
						
			this.objContainer.insertBefore(m_objDiv);
			
		}
		this.objDiv = m_objDiv;
		
	}
	g_fncAjaxLoader.prototype.fncShow = function() {
		if(this.objDiv.style.display!="block"){
			this.objDiv.style.display="block";
		}
		//this.objContent.disabled=true;
		/*this.objSpinner.style.display = "block";
		this.objMainDiv.style.display="block";
		this.objFrame.style.display="block";
		*/
	}

	g_fncAjaxLoader.prototype.fncHide = function() {
		if(this.objDiv.style.display!="none"){
			this.objDiv.style.display="none";
		}
		//this.objContent.disabled=false;
		/*this.objSpinner.style.display = "none";
		this.objMainDiv.style.display="none";
		this.objFrame.style.display="none";
		*/
	}
// --- Ajax Loader --- //


// +++ Form Validation +++ //
function g_fncFormValidator(n_objContainer){

	this.objContainer = n_objContainer;
	this.invalidFlds = null;
	this.strValidation = "";
}
	g_fncFormValidator.prototype.fncValidate = function(n_objFld, n_strType, n_strLabel){
		var strValue = tojo.trim(n_objFld.value);
		
		if(n_strType == "required"){
			
			if(strValue==""){
				var strValidation;
				if(n_objFld.tagName == "SELECT"){
					strValidation = (n_strLabel) ? "A value for " +n_strLabel +" must be selected": "A value for the required field must be selected";
				}
				else{
					strValidation = (n_strLabel) ? n_strLabel + " cannot be empty" : "Required fields cannot be empty";
				}
				this.fncRaiseError(n_objFld, strValidation);
			}
		}
		else if(n_strType == "integer"){
			if(!fncIsInteger(strValue)){
				var strValidation = (n_strLabel) ? n_strLabel + " must be an integer" : "Field value must be an integer";
				this.fncRaiseError(n_objFld, strValidation);
			}
		}
		else if(n_strType == "zip"){
			if(strValue!="" && !fncIsZipCode(strValue)){
				var strValidation = (n_strLabel) ? n_strLabel + " must be a valid USA Zip (00000-0000) or (00000)" : "Zip Code must be a valid USA Zip (00000-0000) or (00000)";
				this.fncRaiseError(n_objFld, strValidation);
			}		
		}
		else if(n_strType == "phone"){
			if(strValue!="" && !fncIsPhone(strValue)){
				var strValidation = (n_strLabel) ? n_strLabel + " can only contain numbers (10 digits), spaces, parentheses, dashes and plus signs" : "Telephone can only contain numbers (10 digits), spaces, parentheses, dashes and plus signs";
				this.fncRaiseError(n_objFld, strValidation);
			}
		}
		else if(n_strType == "email"){
			if(strValue!="" && !fncIsEmail(strValue)){
				var strValidation = (n_strLabel) ? n_strLabel + " is not a syntactically valid email address" : "Email is not a syntactically valid email address";
				this.fncRaiseError(n_objFld, strValidation);
			}
		}
		else if(n_strType == "filename"){
			var arrValue = strValue.split("\\");
			var lastValue = arrValue[arrValue.length-1];
			
			if(strValue !="" && !fncIsFileName(strValue)){
				var strValidation = (n_strLabel) ? n_strLabel + " cannot include any of these characters: @, &, #, %, ^, &, *, +, =, [ ] ; { }, |, < >, ?" : "File Name cannot include any of these characters: @, &, #, %, ^, &, *, +, =, [ ] ; { }, |, < >, ?";
				this.fncRaiseError(n_objFld, strValidation);			
			}
		
		}
	}
	g_fncFormValidator.prototype.fncShow = function(strTitle, noAnchor){
		tojo.removeClass(this.objContainer, 'errorMessage');
		
		if(this.invalidFlds!=null){
		
			tojo.addClass(this.objContainer, 'errorMessage' );

			this.objContainer.innerHTML = ((strTitle)? strTitle : "Validation Failed<br/>") +this.strValidation;
			this.objContainer.style.display="block";
		
			for(var i=0; i<this.invalidFlds.length; i++){
				//this.invalidFlds[i].className="errorField";
				tojo.addClass(this.invalidFlds[i], 'errorField' );
			}
			if(!noAnchor){
				document.location = "#" + this.objContainer.id;
			}
		}
	}
	g_fncFormValidator.prototype.fncClear = function(){
		if(this.invalidFlds!=null){
			tojo.removeClass(this.objContainer, 'errorMessage');
			this.objContainer.innerHTML = "";
			this.objContainer.style.display="none";
		
			for(var i=0; i<this.invalidFlds.length; i++){
				//this.invalidFlds[i].className="";				
				tojo.removeClass(this.invalidFlds[i], 'errorField' );
			}
			
			this.invalidFlds = null;
			this.strValidation = ""
		}
	}
	g_fncFormValidator.prototype.fncRaiseError = function(n_obj, n_strValidation){
		if(this.invalidFlds == null){
			this.invalidFlds = new Array();
		}
		this.invalidFlds.push(n_obj);
		this.strValidation += "- " + n_strValidation + "<br/>";
	}
	g_fncFormValidator.prototype.fncHasError = function(){
		if(this.invalidFlds != null){
			return true;
		}
		else {
			return false;		
		}
	}
// --- Form Validation --- //



	function fncIsInteger(n_strVal) {
		var digits="1234567890";
		for (var i=0; i < n_strVal.length; i++) {
			if (digits.indexOf(n_strVal.charAt(i)) == -1) { return false; }
		}
		return true;
	}
	function fncIsZipCode(strZip){
		var n_regExpression = new RegExp("[^0-9A-Z -]","gi");
		var n_strZip = strZip.toUpperCase();
		var n_strZip = n_strZip.replace(n_regExpression,"");
		var n_strZip = tojo.trim(n_strZip);
		
		//US ZIP 000000000 or 00000 or 00000-0000
		var n_regExpressionUsZip9 = new RegExp("^[0-9]{9}$","gi");
		var n_regExpressionUsZip5 = new RegExp("^[0-9]{5}$","gi");
		var n_regExpressionUsZip10 = new RegExp("^[0-9]{5}[-]{1}[0-9]{4}$","gi");
		var n_regExpressionUsZip6 = new RegExp("^[0-9]{5}[-]{1}$","gi");

		if (n_regExpressionUsZip9.exec(n_strZip) != n_strZip
			&& n_regExpressionUsZip5.exec(n_strZip) != n_strZip
			&& n_regExpressionUsZip10.exec(n_strZip) != n_strZip
			&& n_regExpressionUsZip6.exec(n_strZip) != n_strZip)
		{
			return false;
		}
		return true;		
	}
	function fncIsPhone(strPhone){
		var n_regExpressionTemp = new RegExp("[^0-9()+ -]","gi");
		var n_strPhoneOnly = tojo.trim(strPhone);
		var n_strPhoneOnly = n_strPhoneOnly.replace(n_regExpressionTemp,"");
		
		if (tojo.trim(strPhone).length > 0){
			if (n_strPhoneOnly != tojo.trim(strPhone)){
				return false;
				//fncWriteError("can only contain numbers, spaces, parentheses, dashes and plus signs", n_formObject);
			}
		}
		
		var n_regExpression = new RegExp("[^0-9]","gi");
		var n_intTelephone = strPhone.replace(n_regExpression,"");
		//000000000
		var n_regExpressionUsPhone1 = new RegExp("^[0-9]{10}$","gi");
		
		if (n_regExpressionUsPhone1.exec(n_intTelephone) != n_intTelephone){
			return false;
			//fncWriteError("must be 10 digits", n_formObject);
		}
		return true; 
	}
	function fncIsEmail(strEmail){
		var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.*[.].*$";
		var regex = new RegExp(emailReg);

		if (tojo.trim(strEmail).length > 0){

			if (!regex.test(tojo.trim(strEmail))){
				return false;
				//fncWriteError("is not a syntactically valid email address", n_formObject);
			}

		}
		return true;
	}
	function fncIsFileName(strFileName){
		
		var iChars = "@#%^&*+=[];{}|<>?";
		for (var i = 0; i <  strFileName.length; i++) {
			if (iChars.indexOf(strFileName.charAt(i)) != -1) {				
				return false;
			}
		}

		return true;
	}
	function html2entities(str){
		var re=/[(<>"'&]/g
		str=str.replace(re, function(m){return replacechar(m)})
		return str;
	}
	
	function replacechar(match){
		if (match=="<")
		return "&lt;"
		else if (match==">")
		return "&gt;"
		else if (match=="\"")
		return "&quot;"
		else if (match=="'")
		return "&#039;"
		else if (match=="&")
		return "&amp;"
	}
	formatDate = function (d){
		if(d.indexOf("-")!=-1){
			var a = d.split("-");
			if(a.length>0){
			return a[1]+"/" + a[2] + "/" + a[0];
			}
		}
		else{
			return d;
		}
	}

	function trim(stringToTrim) {
		return stringToTrim.replace(/^\s+|\s+$/g,"");
	}
	function ltrim(stringToTrim) {
		return stringToTrim.replace(/^\s+/,"");
	}
	function rtrim(stringToTrim) {
		return stringToTrim.replace(/\s+$/,"");
	}
	function showImage(catName){
		var cats=catName.split(",");
		var stages = [];
		for (var i=0; i<cats.length;i++){
			switch (trim(cats[i]))
			{
			case "Assess":
			stages[0]='<img src="'+tfautil.v.strImgPath+'clc/icon-small-A.gif"  title="Assess" style="margin:1px;"/>'			
			break;
			
			case "Explore":
			stages[1]='<img src="'+tfautil.v.strImgPath+'clc/icon-small-E.gif"  title="Explore" style="margin:1px;"/>';
			break;
			
			case "Connect":
			stages[2]='<img src="'+tfautil.v.strImgPath+'/clc/icon-small-C.gif" title="Connect" style="margin:1px;"/>';
			break;
			}
		}
		document.write(stages.join(''));
		
	}
	function g_toggleExpandCollapse(objLink,objDiv, strMore, strLess){
		var p = objLink.parentNode;
		var image = p.childNodes[0];
	
		if(objDiv.style.display=="none"){	
			objDiv.style.display="";
			image.src = tfautil.v.strImgPath + "collapse.gif";
			objLink.innerHTML = (strLess)? strLess: "See less";
			objLink.title=(strLess)? strLess: "See less";
		}
		else{
			objDiv.style.display="none";
			image.src = tfautil.v.strImgPath + "expand.gif";
			objLink.innerHTML = (strMore)? strMore: "See more";
			objLink.title = (strMore)? strMore: "See more";
		}
	}
	function g_openWindow(nurl, ntitle, props){
		var m_props = props? props:"width=990,height=700,scrollbars,resizable,menubar,titlebar,toolbar,location";
		var w=window.open(nurl, ntitle, m_props); 
		w.focus(); 
		return false;
	}
	
	function g_setCookie(sName, sValue, blnDoNotEscape)
	{
		var bcValue = blnDoNotEscape ? sValue : escape(sValue);
		
		document.cookie = sName + "=" + bcValue + ";path=/;domain=tfanet.org;";
		//document.cookie = sName + "=" + bcValue + ";";
	}
	
	function g_getCookie(sName, blnDoNotUnEscape)
	{
		// cookies are separated by semicolons
		var aCookie = document.cookie.split("; ");
		for (var i=0; i < aCookie.length; i++)
		{
			var objCookie = aCookie[i];
			var idx = objCookie.indexOf("=");
			var bcName = objCookie.slice(0,idx);
			var bcValue = objCookie.slice(idx+1);

			if (sName == bcName){
				if(blnDoNotUnEscape){
					return bcValue;
				}
				else{
					return unescape(bcValue);
				}
			}
		}
	
		return null;
	}
	
	function g_delCookie(sName)
	{
		document.cookie = sName + "=; expires=Fri, 21 Dec 1976 04:31:24 GMT;";
	}
	function g_goToPage(nurl){
		document.location = nurl;
	}
	
	function g_getResourceIdViaURL(nurl, param){
	  
	 
	  var url = nurl? nurl : document.location.toString();
	  if(!param) param="resource_id";
	 
	  return g_getQueryStringViaURL(param, url);
	 
	}
	function g_getQueryStringViaURL(param, nurl){
		var rID=null; 
		var url = nurl? nurl : document.location.toString();
		var idx1 = url.indexOf(param +"=");

		   if(idx1 != -1){
			var arr = url.split(param + "=");

			if(arr && arr.length>1){

				var arr1 = arr[1].split("&");
				var arr2 = arr1[0].split("#");

				rID = arr2[0]
			}
		   }
		 return rID;
		
	}
	function g_getQueryStringViaURL_new(key, nurl){
			var qs=null; 
			var url = nurl? nurl :  window.location.search.substring(1);
			var pairs = url.split("&");
			var item, name, val;
	  	 		  
		     for (var i = 0; i < pairs.length; i++) {		  

			item=pairs[i];
			 var seperatorPosition = item.indexOf("=");
			 
			 if (seperatorPosition != -1) {			
			     name = item.substring(0, seperatorPosition);
			     if(name==key){
			     	val = item.substr(seperatorPosition+1);
			     	alert(val); 
			     }
			 }
			
			
		     }

		    /*
		    if (default_==null) default_=""; 
		      key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		      var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
		      var qs = regex.exec(window.location.href);
		      if(qs == null)
		        return default_;
		      else
    			return qs[1];
    		*/
	
	}
	
	 
	function g_BrowserInfo(){
		
		this.nVer = navigator.appVersion;
		this.nAgt = navigator.userAgent;
		this.browserName  = navigator.appName;
		this.fullVersion  = 0; 
		this.versionStr = "";
		this.isIE=false;
		this.isMozilla=false;
		this.isOpera=false;
		this.isSafari=false;
		this.isChrome=false;

		// In Internet Explorer, the true version is after "MSIE" in userAgent
		if ((this.verOffset=this.nAgt.indexOf("MSIE"))!=-1) {
		 this.browserName  = "Microsoft Internet Explorer";
		 this.fullVersion  = this.getVersion(this.verOffset+5);
		 this.isIE=true;
		 //this.majorVersion = parseInt(''+this.fullVersion);
		}

		// In Opera, the true version is after "Opera" 
		else if ((this.verOffset=this.nAgt.indexOf("Opera"))!=-1) {
		 this.browserName  = "Opera";
		 this.fullVersion  = this.getVersion(this.verOffset+6);
		 this.isOpera=true;
		 //this.majorVersion = parseInt(''+this.fullVersion);
		}

		// In Firefox, the true version is after "Firefox" 
		else if ((this.verOffset=this.nAgt.indexOf("Firefox"))!=-1) {
		 this.browserName  = "Firefox";
		 this.fullVersion  = this.getVersion(this.verOffset+8);

		 this.isMozilla=true;
		 //this.majorVersion = parseInt(''+this.fullVersion);
		}

		// Google Chrome
		// eg. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13
		// (Chrome says Mozilla and Safari too in nAgt. more fixin TBD?)
		else if ((this.verOffset=this.nAgt.indexOf("Chrome"))!=-1) {
		 this.browserName  = "Chrome";
		 this.fullVersion  = this.getVersion(this.verOffset+7);
		 this.isChrome=true;
		 //this.majorVersion = parseInt(''+this.fullVersion);
		}

		// In most other browsers, "name/version" is at the end of userAgent 
		else if ( (this.nameOffset=this.nAgt.lastIndexOf(' ')+1) < (this.verOffset=this.nAgt.lastIndexOf('/')) ) 
		{
			this.browserName  = this.nAgt.substring(this.nameOffset,this.verOffset);
			this.fullVersion  = this.getVersion(this.verOffset+1);
			if(isNaN(this.fullVersion)) this.fullVersion = 0;

			if((this.nAgt.indexOf("Safari"))!=-1){
				this.isSafari=true;
				if((this.verOffset=this.nAgt.indexOf("Version")) !=-1){
					this.fullVersion = this.getVersion(this.verOffset+8);
				}else if(this.fullVersion > 400){
					this.fullVersion = 2.0;
				}
			}
		 
		 //if (!isNaN(this.fullVersion)) this.majorVersion = parseInt(''+this.fullVersion);
		 //else {this.fullVersion  = 0; this.majorVersion = 0;}
		}

		// Finally, if no name and/or no version detected from userAgent...
		if (this.browserName.toLowerCase() == this.browserName.toUpperCase()
		 || this.fullVersion==0 || this.majorVersion == 0 )
		{
		 this.browserName  = navigator.appName;
		 this.fullVersion  = parseFloat(this.nVer);
		 //this.majorVersion = parseInt(this.nVer);
		}
	}
		g_BrowserInfo.prototype.getVersion = function(intOffset){
			var str= this.nAgt.substring(intOffset);
			this.versionStr= str.split(" ")[0];
			return parseFloat(str);
		}
		g_BrowserInfo.prototype.getBrowserName = function(){
			return this.browserName;		
		}
		g_BrowserInfo.prototype.getBrowserVersion = function(){
			return this.fullVersion;		
		}
		/*
		g_BrowserInfo.prototype.isSupportedBrowser = function(){
			var mVersion = parseInt(''+this.fullVersion);
			if(this.isIE && (mVersion == 6 || mVersion == 7)) return true;
			else if(this.isMozilla && mVersion == 2 ) return true;
			else if(this.isSafari && mVersion == 2) return true;

			return false;
		}
		*/
		g_BrowserInfo.prototype.isSupportedBrowser = function(){
			var mVersion = parseInt(''+this.fullVersion);

			var flag= false;
			if (this.isIE && mVersion == 7) flag= true;
			else if(this.isMozilla && mVersion == 3 && this.versionStr.indexOf("3.5")!=0 ) flag= true;
			else if(this.isSafari && mVersion == 3) flag= true;
			else if(this.isChrome && mVersion == 1) flag= true;

			return flag;
		}
		
		
function g_togglePortletVisibility(strId, blnShow){
	var m_blnShow = blnShow ? "" : "none";
	var portletId = strId;
			
	var obj = document.getElementById(portletId);
	if(obj){
		obj.style.display = m_blnShow;
	}

 
}
function g_submitForm(ofrm){
	if(ofrm){
		ofrm.submit();
	}
}



function g_fncUserVoice(){
	this.initialized = 0
	this.scripts = new Array();
	this.strSSO = "";
	this.strSSOUrl = "/net/PA_Community/SubmitFeedback";
	this.jsonSetup = { 
		key: 'packeta',
		host: 'feedback.tfanet.org', 
		forum: 'general',
		alignment: 'right', /* 'left', 'right' */
		background_color:'#bf2e1a', 
		text_color: 'white', /* 'white', 'black' */
		hover_color: '#257190',
		lang: 'en' /* 'en', 'de', 'nl', 'es', 'fr' */
	};
}
	g_fncUserVoice.prototype.init = function(){
		if(!this.initialized){
			//var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : "http://cdn.uservoice.com";
			
			//document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
			
			//this.loadScript(uservoiceJsHost + "/javascripts/widgets/tab.js");
			
			this.initialized = 1;
		}
	}
	g_fncUserVoice.prototype.setupPopup =function(){
		this.jsonSetup.params = {sso:this.strSSO};
		//console.dir(this.jsonSetup);
		UserVoice.Popin.setup(this.jsonSetup);			
	}
	g_fncUserVoice.prototype.loadScript = function(script) {
		if (!this.scripts[script]) {
			this.scripts[script] = true;
			var scriptElem = document.createElement("script");
			scriptElem.src = script;
			document.body.insertBefore(scriptElem, document.body.firstChild);
		}
	}
	g_fncUserVoice.prototype.loadSSO = function(){
		
		//AJAX call to get SSO string
		var objThis = this;
		tfautil.xhrPost({
			url: objThis.strSSOUrl,
			form: "footer_submitFeedbackFORM",
			handleAs:"json",
			load: function(rdata) {
				objThis.processLoad(rdata);
			}
		});
	}
	g_fncUserVoice.prototype.processLoad = function(rdata){
		if(rdata){
			if(rdata.result){
				var strResult = rdata.result;
				this.strSSO = strResult;
				this.setupPopup();
				//UserVoice.Popin.show();
			}
			else{
				var strError = rdata.error ? rdata.error : "An error has occurred.  Please try again later."
				alert(strError);
			}
		}
	}
	g_fncUserVoice.prototype.show = function(){
		//show floating feedback tab
		UserVoice.Tab.show(this.jsonSetup);
		this.loadSSO();
	}
	
	
	