KundeLogin = {
	submit: function(){
		var funk = function(){
			if(document.getElementById('login_control_loaded'))
				location.replace(".");
		};
		document.getElementById("error_message").innerHTML = "Logger ind...";
		YAHOO.util.Connect.asyncPostRequest('ajax/login_control.php?ajax=true','error_message','','ajax_login_form',funk);
	}
}

Secure = {	
	getURL: function(){
		var cot_tl_myLocation = location.host;
		var cot_tl_LogoType = 'SC2';
		if(window.location.protocol.toLowerCase()=="https:")
			return 'https://secure.comodo.net/ttb_searcher/trustlogo?v_querytype=W&v_shortname='+cot_tl_LogoType+'&v_search='+cot_tl_myLocation+'&x=6&y=5';
		else
			return 'http://www.trustlogo.com/ttb_searcher/trustlogo?v_querytype=W&v_shortname='+cot_tl_LogoType+'&v_search='+cot_tl_myLocation+'&x=6&y=5';
	},
	
	cot_tl_bigPopup: function(url){
		var newwindow = window.open(url,'name','WIDTH=450,HEIGHT=500,FRAMEBORDER=0,MARGINWIDTH=0,MARGINHEIGHT=0,SCROLLING=no,allowtransparency=true');
	},
	
	klik: function(link){
		var url = this.getURL();
		return this.cot_tl_bigPopup(url);
	}
}