//'http://localhost/dev/tod/'+

function open_url(_url){
	window.open(_url, '_parent','');
//alert(_url);
}

function your_say(_data){
	window.open('your-say.htm?data='+_data, 'win','width=400, height=300, scrollbars=1, statusbar=1');
//	this.focus();

}

function post_your_comment2(_day){
	window.open('your-say.htm?day='+_day, 'win','width=400, height=300, scrollbars=1, statusbar=1');
//	this.focus();

}

function post_your_comment(PostId){
	window.open('./Popup/YourSay.aspx?pid='+ PostId, 'win','width=500, height=450, scrollbars=1, statusbar=1');
//	this.focus();

}


var base_bg;
var base_class;
function highlight_me(_var){
	base_bg = _var.style.background;

	_var.style.background = '#955A22'; //'#000';
}

function restore_me(_var){
//	base_bgB6662A
	if(!base_bg){
		base_bg = '#B6662A';
//		alert(base_bg);
	}
	_var.style.background = base_bg; //'#000';
}

function post_your_comments(){
	var _dom = document.getElementById('tod');

	var _contents = _dom .innerHTML

	alert("Element" + _contents);
}

// keep file names for thought-of-the-day should be as below
// thought-of-the-day-jan06
function nav_tod(_month){
	var _url = 'thought-of-the-day-';
	var _no_url = 'feb,mar,apr,may,jul,aug,sep,nov,dec';

	_month = _month.toLowerCase();
	var _redirect =_no_url.match(_month.substring(0,3));

	if(_redirect ==null){
//	alert(_month);
	window.open(_url+_month+'.htm', '_parent','');
	}else{
		window.open('thought-of-the-day.htm', '_parent','');
//	alert(_redirect);
	}
}
