function get() {
   var regexS = "[\\?&](.*)";
   var regex = new RegExp(regexS);
   var results = regex.exec(window.location.href);
   if (results === null) {
       return false;
   } else {
       return results[1];
   }
}

function addPid()
{
 getParam=get();
 if (getParam)
 {
     for (i=0; i < document.links.length; i++)
     {
       oldHref = document.links[i];
       if ( oldHref.href.match("http://www.boobfrog.com/") )
       {              
	       if ( oldHref.href.match("\\?") )
           {
               document.links[i].href = oldHref.href + "&" + getParam;
           }
           else
           {
               document.links[i].href = oldHref.href + "?" + getParam;
           }
       }
     }
	 
	 for (i=0;i<document.forms.length;i++)
	 {
	 	oldForm = document.forms[i];
		if ( oldForm.action.match("http://www.boobfrog.com/") )
        {              
	       if ( oldForm.action.match("\\?") )
           {
               document.forms[i].action = oldForm.action + "&" + getParam;
           }
           else
           {
               document.forms[i].action = oldForm.action + "?" + getParam;
           }
       }
	 }
 }
}