function checkSignup(str){
	
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

	if (filter.test(str))
		testresults=true;
	else{
		alert("The email you entered doesn't seem valid. Please try again.");
		testresults=false;
	}
	
	return (testresults);

}


function add_skyscraper(){
	
	/******** HACK: adding google ad ********/
	
	//does ad exist yet?
	thead = document.getElementById("skyscraper");
	/*
	if(typeof(thead) != "undefined"){
		//ad exists
	} else {
	*/
		thead = document.createElement("div");
		thead.className = "widget_ad_skyscraper";
		thead.setAttribute('id', 'skyscraper');
		
		//google_ad_client = "pub-8142019131288320";
		/* 160x600, created 8/24/10 */
		//google_ad_slot = "2470562438";
		//google_ad_width = 160;
		//google_ad_height = 600;
		
		scriptconfig = document.createElement('script');
		scriptconfig.type = 'text/javascript';
		scriptconfig.src = 'http://www.thecontributingeditor.com/wp-content/themes/contributingeditor/js/skyscraper_settings.js';
		
		thescript = document.createElement('script');
		thescript.type = 'text/javascript';
		thescript.src = "http://pagead2.googlesyndication.com/pagead/show_ads.js";
		
	
		
		if(jQuery('#tweetblender-3-mc > div.tb_tweetlist').children('div').size() >= 9){
			
			jQuery('#tweetblender-3-mc').append(thead);
				
			
		} else {
			
			jQuery('#tweetblender-3-mc').append(thead);
		}
		
		theaddiv = document.getElementById('skyscraper');
		
		theaddiv.appendChild(scriptconfig);
		//theaddiv.appendChild(thescript);
	
	//}
	
	
	/******* end hack ********/
}
