﻿/*function ClickButton(e, buttonid) 
{     
    alert( 'enter' );
    var bt = document.getElementById(buttonid); 
    if (typeof bt == 'object')
    { 
        if (event.keyCode == 13)
        {             
            bt.click(); 
            return false; 
        } 
    }
}*/

/*function validateEmail( tboEmailID )
{
    var tboEmail = document.getElementById( tboEmailID );
    if( tboEmail.value.length > 0 ){
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if( !filter.test( tboEmail.value ) ){ return false; }
    }
    else{
        return false;
    }
    return true;
}*/

$(window).load(function(){
	
	//$(".stripe tbody tr:odd").addClass("alt");
	//$("table.stripe tr").find("td:last").addClass("button");
	//$("#nav").find("a:last").css("border","0");
	
	// spam protection: <span class="email">jokull at spamsociety dot com</span> => functioning email link
	$("span.email").each(function(i){
		parts = this.innerHTML.split(' ');
		email = parts[0] + "@" + parts[2] + "." + parts[4];
		$(this).html("<a href='mailto:" + email + "'>" + email + "</a>");
	});
	$('#buzz').tabs();
		
});
