//
//	store_the_parms.js	2007-03-12
//
//	jscript program to pass along the 'send_to' value from form to form
//
//	this is called from the body onLoad

function store_the_parm()	{
	var urlquery = location.href.split('?');
	var allParms = urlquery[1];
	var eachParms = allParms.split('&');
	for ( x in eachParms )	{
		// alert ( 'eachParms = ' + eachParms[x] ) ;
		var thisParm = eachParms[x].split('=');

		switch (thisParm[0])
		{
			case  ( 'send_to' )	:
				if  ( thisParm[1] != 'undefined' )	{
					document.thisForm.send_to.value = unescape(thisParm[1]);
							// url pretty via 'unescape' 	2007-04-06
				} else {
					alert ('error in link - undefined  "send_to"  parameter');
					break;
				};
				break;
		}
	};
};

function store_the_redirect_page_var()	{
		// 2009-05-07
	if  ( navigator.javaEnabled() )		{
		// alert (  document.Gui_RP.redirect_page.value );
		document.thisForm.redirect_page.value = document.Gui_RP.redirect_page.value ;
	} else {
		alert ('You must have java enabled to use the recording function!');
		document.thisForm.redirect_page.value = '/thankyou.shtml' ;
	}
}
