	   function addLink(strPath) {
		  // function created for changing the internal links in the content dynamically 
		  var strUrlPath="";
		  if (cmrclparDivId !="") {
		    if (strPath.indexOf("DIV"+cmrclparDivId)=="-1") {
			     strInd=strPath.indexOf(".html");
				 strUrlPath=strPath.substr(0,strInd);		 
				 strResPath=strPath.substr(strInd);
				 strInd=strUrlPath.lastIndexOf(",")
				 strResPath=strUrlPath.substr(strInd)+strResPath;
				 strUrlPath=strPath.substr(0,strInd)+"_SIT"+cmrclparDivId;
				 if (cmrclnbdId !="") {
				 strUrlPath=strUrlPath+"_NBD"+cmrclnbdId;
				 }
				 document.location.href=strUrlPath+strResPath;	
				 return;  
			 }
			   document.location.href=strPath;		 
		  } else {
			  document.location.href=strPath;
		  }	  
			if (cmrclnbdId !="") {
				//strPath=document.location.href;
				strInd=strPath.indexOf(".html");
				strUrlPath=strPath.substr(0,strInd);		 
				strResPath=strPath.substr(strInd);
				strInd=strUrlPath.lastIndexOf(",")
				strResPath=strUrlPath.substr(strInd)+strResPath;
			    strUrlPath=strPath.substr(0,strInd)+"_NBD"+cmrclnbdId;
				document.location.href=strUrlPath+strResPath;	
			}
	   }

	function fnChkValue(selValue) {
		if (selValue.State.value == "") {
			alert("Please choose a U.S. State or a Canadian Province.");
			return false;
		} else {
			return true;
		}
	}
	function fnChkSearchString() {
		var srchbox = eval("document.all.frmSearch['sp-q']");
		srchbox.value=Trim(srchbox.value);
		if((srchbox.value)=="") { 
			alert("Please enter the string to search for.");
			srchbox.focus();
			return false;
		}
		return true;
	}
	function Trim(str) {
   		return RTrim(LTrim(str));
	}
	function LTrim(str) {
		var whitespace = new String(" \t\n\r");
	    var s = new String(str);
	    if (whitespace.indexOf(s.charAt(0)) != -1) {
	       var j=0, i = s.length;
		   while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
		      j++;
		   s = s.substring(j, i);
	    }
	    return s;
	}
	function RTrim(str)	{
		var whitespace = new String(" \t\n\r");
		var s = new String(str);
		if (whitespace.indexOf(s.charAt(s.length-1)) != -1)	{
		    var i = s.length - 1;
		    while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
			    i--;
		    s = s.substring(0, i+1);
		   }
		   return s;
	}