function openForm(theURL,winName,features) { //v2.0
  theURL += "&ref="+escape(location.href);
  window.open(theURL,winName,features);
}
