/**
 * @author Administrator
 */

window.addEvent('domready', function() {
    	var nominate_screen = $('nominate_screen');
		
		var Tips1 = new Tips($$('.tips1'));
		var obj = new Swiff('images/flashbanner.swf', {
		    width:  760, 
		    height: 220, 
			vars: {"billede" : flashbanner_billede, "goto" : flashvars},
		    container: $('flashbanner')
		});
		var obj = new Swiff('images/countdown.swf', {
		    width:  95, 
		    height: 100, 
		    container: $('date_counter')
		});
		var obj = new Swiff('images/post-it.swf', {
		    width:  153, 
		    height: 141, 
			vars: { },
		    container: $('indstil-nu')
		});
		/*
		var obj2 = new Swiff('images/countdown.swf', {
		    width:  150, 
		    height: 120, 
		    container: $('date_counter')
		});*/
		var obj3 = new Swiff('images/tommy.swf', {
		    width:  760, 
		    height: 220, 
		    container: $('flashbanner_tommy')
		});
		

		
});

function check(){
	var error = 0;
			var errorstring = "Udfyld venligst";
			if($('name').value.length < 2){
				errorstring += "\nNavn";
				error += 1;
			}
			if($('title').value.length < 2){
				if(error>0) errorstring += ", ";
				errorstring += "\nTitel";
				error += 1;
			}
			if($('company').value.length < 2){
				if(error>0) errorstring += ", ";
				errorstring += "\nVirksomhed";
				error += 1;
			}
			if($('idea').value.length < 2){
				if(error>0) errorstring += ", ";
				errorstring += "\nIdégrundlag";
				error += 1;
			}
			if($('reason').value.length < 2){
				if(error>0) errorstring += ", ";
				errorstring += "\nBegrundelse";
				error += 1;
			}
			
			if (error > 0) {
				alert(errorstring);
				return false;
			}
			else {
				return true;
			}
}	

