// FeedbackJavaScript.js

//A Fix for the feedback back button to make it go back to the
//previous page the user visited in the browser's history
function goBack(){
   history.go(-1);
}

var limit2 = 1000;
// To disable the user from writting more than 100 characters
function func_5(thisObj, thisEvent){
//use 'thisObj' to refer directly to this component instead of keyword 'this'
//use 'thisEvent' to refer to the event generated instead of keyword 'event'
    if(thisObj.value.length+1 >=limit2){
            var strValue = thisObj.value.substring(0,limit2-1);
            thisObj.value = strValue;
      }
}

//Gets the homepage URL to fix the portal initial state problem
// with the combination of a URL generation and a navigation rule
function getHomePageURL(urlMapping){
        var host = location.host;
        var loc = 'http://' + host + urlMapping;
        return loc;
}


