function yayin_tarihi_kontrol(status){

	if (status == false) {
		document.konu_form.gun_frm.disabled = true;
		document.konu_form.ay_frm.disabled = true;
		document.konu_form.yil_frm.disabled = true;
		document.konu_form.saat_frm.disabled = true;
		document.konu_form.dakika_frm.disabled = true;
	}
		
	if (status == true) {
		document.konu_form.gun_frm.disabled = false;
		document.konu_form.ay_frm.disabled = false;
		document.konu_form.yil_frm.disabled = false;
		document.konu_form.saat_frm.disabled = false;
		document.konu_form.dakika_frm.disabled = false;
	}
}


	w = screen.availWidth;
	h = screen.availHeight;
	

function popup() {
	
	var popW = 440, popH = 400;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	var loc = "etkinlik_gonder.php";

	window.open(loc,'popup','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);

}

function arkadasa_gonder(loc) {
	
	var popW = 440, popH = 400;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;

	window.open(loc,'popup','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);

}


function toggleMenu(ident) {
	var box, img;

	box = getElem('sub_' + ident);
	btn = getElem('btn_' + ident);
	li_obj = btn.parentNode;
	li_obj.id = 'li_' + ident;

	if (box)
	{
		if (btn.className == 'btn col')
		{
			li_obj_height = getHeight(li_obj);
			if (animatedtab) {
				li_obj.rundone = function() { getElem(box.id).style.display = 'none'; }
				resize_h(li_obj.id, li_obj_height, (li_obj_height - getHeight(box)), 10,2);
			} else {
				box.style.display = 'none';
			}
			btn.className = "btn"
			btn.innerHTML = '+';
		}
		else
		{
			li_obj.orig_h = getHeight(li_obj);
			if (animatedtab) {
				li_obj.style.overflow = "hidden";
				li_obj.style.height = li_obj.orig_h + "px";
				box.style.display = 'block';
				resize_h(li_obj.id, li_obj.orig_h, (li_obj.orig_h+ getHeight(box)),10,2);
			} else {
				box.style.display = 'block';
			}
			btn.className = "btn col"
			btn.innerHTML = '-';
		}

	}
}



var crOld = 1;

function sekmele(s) {
	document.getElementById("sekmeicerik"+crOld).style.display= "none";
	document.getElementById("sekmeicerik"+s).style.display= "";
	document.getElementById("sekme"+crOld).className = "default_sekme";
	document.getElementById("sekme"+s).className = "secili_sekme";
	crOld = s;
}	 




