// JavaScript Document
// $Id: subscribe.js,v 1.1 2008/12/19 10:27:21 cfisher Exp $
// Requires a previous iframe of the form
// <iframe id="subscribe_frame" name="subscribe_frame" title="18"></iframe>
// <script language="javascript" src="http://www.prolateral.com/subscribe.js"></script>
// where the title attribute is the PartnerID
// Will redirect to the internal script and pass the pid=PartnerID + any other params from the original URL

var parampos=document.URL.indexOf('?');
var param='';
if (parampos>0) { param='&'+document.URL.substring(parampos+1); }
frames['subscribe_frame'].location.href
                = 'http://www.prolateral.com/prolateral/signup4/step1.php'
		+ '?pid=' + document.getElementById('subscribe_frame').getAttribute('partner_id')
		+ '&nomail=' + document.getElementById('subscribe_frame').getAttribute('nomail')
	        + param ;

