function SwitchRow(ParamRowID) { if (document.getElementById(ParamRowID).style.display=='none') { document.getElementById(ParamRowID).style.display='block'; } else { document.getElementById(ParamRowID).style.display='none'; } } function QueryStringAdd(strName, strValue) { strOperator='&'; strLocation=QueryStringRemove(strName) if (strLocation=='') strOperator='?'; strData=strOperator + strName + '=' + escape(strValue); return document.location.pathname + strLocation + strData; } function QueryStringRemove(strName) { strResult=location.search; strResult=strResult.replace('&' + strName + '=' + QueryString(strName), ''); strResult=strResult.replace('?' + strName + '=' + QueryString(strName), ''); return strResult; } function QueryString(strParameter) { var intBegin,intEnd; if(self.location.search.length>1) objString=self.location.search; else if(self.location.hash.length>1) objString=self.location.hash; else return(''); intBegin=objString.indexOf(strParameter) + strParameter.length+1; intEnd=objString.indexOf('&',intBegin); if(intEnd==(-1)) intEnd=objString.length; return(objString.substring(intBegin,intEnd)); }