	window.addEvent('domready', function() {
		var modules = ['module','moduletable','submenu-block'];
		var header = "h3";
		RokBuildSpans(modules, header);
	});
	window.addEvent('domready', function() {
		new Rokmoomenu($E('ul.menutop '), {
			bgiframe: false,
			delay: 500,
			animate: {
				props: ['height', 'opacity'],
				opts: {
					duration: 400,
					transition: Fx.Transitions.Sine.easeInOut
				}
			},
			bg: {
				enabled: true,
				overEffect: {
					duration: 100,
					transition: Fx.Transitions.Expo.easeOut
				},
				outEffect: {
					duration: 800,
					transition: Fx.Transitions.Sine.easeIn
				}
			},
			submenus: {
				enabled: true,
				overEffect: {
					duration: 50,
					transition: Fx.Transitions.Expo.easeOut
				},
				outEffect: {
					duration: 600,
					transition: Fx.Transitions.Sine.easeIn
				},
				offsets: {
					top: 5,
					right: 15,
					bottom: 5,
					left: 5
				}
			}
		});
	});
	function submitbutton_Poll1() {
		var form 		= document.pollxtd1;			
		var radio		= form.voteid;
		var radioLength = radio.length;
		var check 		= 0;
		for(var i = 0; i < radioLength; i++) {
			if(radio[i].checked) {
				form.submit();
				check = 1;	
			}
		}		
		if (check == 0) {
			alert('נא לבחור אחת מתשובות הסקר!');
		}
	}
function set_Cookie (name, value, hours, path, domain, secure) {
	if (WM_acceptsCookies) { // Don't waste your time if the browser doesn't accept cookies.
		var not_NN2 = (navigator && navigator.appName 
			&& (navigator.appName == 'Netscape') 
			&& navigator.appVersion 
			&& (parseInt(navigator.appVersion) == 2))?false:true;
		if(hours && not_NN2) { // NN2 cannot handle Dates, so skip this part
			if ( (typeof(hours) == 'string') && Date.parse(hours) ) { // already a Date string
				var numHours = hours;
			} else if (typeof(hours) == 'number') { // calculate Date from number of hours
				var numHours = (new Date((new Date()).getTime() + hours*3600000)).toGMTString();
			}
		}
		document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' + numHours):'') + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'') + ((secure && (secure == true))?'; secure':''); // Set the cookie, adding any parameters that were specified.
	}
} 


function kill_Cookie(name, path, domain) {
		document.cookie = name + '=0; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:''); // set an already-expired cookie
} 
function get_cookie(name) {
	if(document.cookie == '') { // there's no cookie, so go no further
		return false; 
	} else { // there is a cookie
		var firstChar, lastChar;
		var theBigCookie = document.cookie;
		firstChar = theBigCookie.indexOf(name);	// find the start of 'name'
		var NN2Hack = firstChar + name.length;
		if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) { // if you found the cookie
			firstChar += name.length + 1; // skip 'name' and '='
			lastChar = theBigCookie.indexOf(';', firstChar); // Find the end of the value string (i.e. the next ';').
			if(lastChar == -1)
				lastChar = theBigCookie.length;
			return unescape(theBigCookie.substring(firstChar, lastChar));
		} else { // If there was no cookie of that name, return false.
			return false;
		}
	}	
}
function popupwin(address, win_name, width, height) {
	width = !width ? 200 : width;
	win_name = win_name ? win_name : "WindowDisplay";
	open_window(address,win_name,0,0,0,1,0,1,0,width, height)
}
function open_window(address,win_name,op_tool,op_loc_box,op_dir,op_stat,op_menu,op_scroll,op_resize,op_wid,op_heigh){    
	win_name = win_name ? win_name : "Window";
	op_tool  = op_tool ? 1 : 0;    
	op_loc_box  = op_loc_box ? 1 : 0;    
	op_dir  = op_dir ? 1 : 0;    
	op_stat  = op_stat ? 1 : 0;    
	op_menu  = op_menu ? 1 : 0;    
	op_scroll  = op_scroll ? 1 : 0;    
	op_resize  = op_resize ? 1 : 0;   
	LeftPosition = (screen.width) ? (screen.width-op_wid)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-op_heigh)/2 : 0;
	option = "top="+TopPosition+",left="+LeftPosition+"toolbar="+ op_tool +",location="+ op_loc_box +",directories="+ op_dir +",status="+ op_stat+",menubar="+op_menu+",scrollbars="+op_scroll+",resizeable="+op_resize+",width="+op_wid+",height="+op_heigh;
	win3 = window.open(address, win_name, option);
	win3.focus();
}
function Birthday(dayactive, monthactive, yearactive) {
var Time = new Date();
var limityear = Time.getYear();
var sHTML = '<select name="u[birthyear]" class="txtbox"><option value="0000">שנה</option>';
for(year = 1930; year <= 2008; year++) {
 if(yearactive != 0 && year == yearactive) {
 sHTML += '<option value="' + yearactive + '" SELECTED>' + yearactive + '</option>';
 } else{
 sHTML += '<option value="' + year + '">' + year + '</option>';
 }
}
sHTML += '</select> / <select name="u[birthmonth]" class="txtbox"><option value="00">חודש</option>';
for(month = 1; month <= 12; month++) {
 if(monthactive != 0 && month == monthactive) {
 sHTML += '<option value="' + monthactive + '" SELECTED>' + monthactive + '</option>';
 } else{
 sHTML += '<option value="' + month + '">' + month + '</option>';
 }
}
sHTML += '</select> / <select name="u[birthday]" class="txtbox"><option value="00">יום</option>';
for(day = 1; day <= 31; day++) {
 if(dayactive != 0 && day == dayactive) {
 sHTML += '<option value="' + dayactive + '" SELECTED>' + dayactive + '</option>';
 } else{
 sHTML += '<option value="' + day + '">' + day + '</option>';
 }
}
sHTML += '</select>';
document.write(sHTML);
}