(function() {

var w,d,l,r;
var src = "http://www.stock-market-investing.com/cgi-bin/pseek/ppc_if.cgi";

function init() {
	w = window;
	d = document;
	l = location;
	r = d.referrer;
	
	src += "?keywords=" + escape(w.fppc_keyword);
	src += "&ad_format=" + w.fppc_ad_format; 
	src += "&color_border=" + w.fppc_color_border;
	src += "&color_link=" + w.fppc_color_link;
	src += "&color_bg=" + w.fppc_color_bg;
	src += "&color_text=" + w.fppc_color_text;
	src += "&affid=" + w.fppc_affid;
	src += "&channel=" + w.fppc_channel;
	/*
	src += "&color_url=" + w.fppc_color_url;
	*/
}

function gen() {
	var framecode = '<iframe name="fppc_ads_frame" width="' + w.fppc_ad_width + '" height="' + w.fppc_ad_height + '" frameborder="0" src="' + src + '" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">'; 
	framecode += '</iframe>';

	d.write(framecode);
}

function reset() {
	var x=null;	
	w.fppc_keyword=x;
	w.fppc_ad_format=x;
	w.fppc_color_border=x;
	w.fppc_color_link=x;
	w.fppc_color_bg=x;
	w.fppc_color_text=x;
	src=x;
}

init();
gen();
reset();

}) ()
