	var bCRMSent=false;
	var signupSource;
	function SendCRM(partnerID)
		{
			if (bCRMSent)
				return;
				
			bCRMSent=true;
			
			var sURL="http://www.pipelinedeals.com/web_lead";
			
			var sData;
			if ($j("input[name='service']").val()=="Affiliates")
				sData="w2lid=0f33cad8d577aff1&" ;
			else
				sData="w2lid=ed0eff749950f245&" ;
			
			source="LeadGalaxy";
			if (signupSource!=undefined)
				if (signupSource>"")
					source=signupSource;
			sData=sData + "thank_you_page=http://www.leadgalaxy.com/company/crm_thanks.html&" +
						"lead[last_name]=" + $j("#contact_name").val() + "&" +
						"lead[first_name]=&" +
						"lead[company_name]=" + $j("#contact_company").val() + "&" + 
						"lead[phone]=" + $j("#contact_phone").val() + "&" +
						"lead[email]=" + $j("#contact_email").val() + "&" +
						"lead[work_country]=" + $j("#contact_country").val() + "&" +
						"lead[website]=" + $j("#contact_website").val() + "&" +
						"note_title_1=PartnerID&" +
						"note_1=PartnerID:" + partnerID + "&" + 
						"tag_1=" + source + " Signup";
			var sendData={url:sURL,data:sData};
			$j.get("/lg.system/lg.ajax.crossdomain2.asp",sendData,function(d){
					if (d.indexOf("Error")>0)
					{
						//alert(d);
					}
					else
					{
						var sData=d;
					}
				});
			
		}
		
		function SendCRMPartial()
		{
			if (bCRMSent)
				return;
				
			bCRMSent=true;
			
			var sURL="http://www.pipelinedeals.com/web_lead";
			
			var sData;
			if ($j("input[name='service']").val()=="Affiliates")
				sData="w2lid=0f33cad8d577aff1&" ;
			else
				sData="w2lid=ed0eff749950f245&" ;
			
			source="LeadGalaxy";
			if (signupSource!=undefined)
				if (signupSource>"")
					source=signupSource;
					
			source = "Partial " + source;		
			sData=sData + "thank_you_page=http://www.leadgalaxy.com/company/crm_thanks.html&" +
						"lead[last_name]=" + $j("#contact_name").val() + "&" +
						"lead[first_name]=&" +
						"lead[company_name]=" + $j("#contact_company").val() + "&" + 
						"lead[phone]=" + $j("#contact_phone").val() + "&" +
						"lead[email]=" + $j("#contact_email").val() + "&" +
						"lead[work_country]=&" +
						"lead[website]=&" +
						"note_title_1=PartnerID&" +
						"note_1=PartnerID:&" + 
						"tag_1=" + source + " Signup";
			var sendData={url:sURL,data:sData};
			$j.get("/lg.system/lg.ajax.crossdomain2.asp",sendData,function(d){
					if (d.indexOf("Error")>0)
					{
						//alert(d);
					}
					else
					{
						var sData=d;
					}
				});
			
		}