function setCookie(c_name,value,expiredays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

var myDate = new Date();
var timezone = myDate.getTimezoneOffset();
setCookie('tzoffset',timezone,30);

function fileBrowserCallBack(field_name, url, type, win) {
    browserField = field_name;
    browserWin = win;
    window.open(TinyMCE_BrowserURL, "browserWindow", "modal,width=900,height=780,scrollbars=1");
}

function SetUrl(url) {
    window.browserWin.document.getElementById('src').value = url;
    window.browserWin.focus();
}

function reload_page() {
	window.location.reload();
}

function fb_goto_page(location) {
	document.setLocation(location);
}