function r(id)
{
	document.getElementById(id).style.color='#FF0000';
}
function w(id)
{
	document.getElementById(id).style.color='#666666';
}

function rr(id)
{
	document.getElementById(id).style.borderLeftColor='#E5E4D7';
	document.getElementById(id).style.backgroundColor='#E5E4D7';
}
function ww(id)
{
	document.getElementById(id).style.borderLeftColor='#E5E4D7';
	document.getElementById(id).style.backgroundColor='#CCFFCC';
}

function rrr(id)
{
	document.getElementById(id).style.borderLeftColor='#E5E4D7';
	document.getElementById(id).style.backgroundColor='#CCFFCC';
}
function www(id)
{
	document.getElementById(id).style.borderLeftColor='#E5E4D7';
	document.getElementById(id).style.backgroundColor='#E5E4D7';
}
function AcKapa(obj)
{
	var id=document.getElementById(obj);
	id.style.display = (id.style.display != 'none' ? 'none' : '' );	
}

function Bos(id)
{
	var obj=document.getElementById(id);
	obj.innerHTML='';
}
function popit(href,width,height)
{
	window.open(href,'','width='+width+', height='+height+', top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
}
function yorum_ekle(type,oid)
{ 
	var sc0 = 'oid='+ oid;
	var sc1 = '&type='+ type;
	var sc2 = '&ad='+ escape(document.yorumform.ad.value);
	var sc3 = '&konu='+ escape(document.yorumform.konu.value);
	var sc4 = '&yorum='+ escape(document.yorumform.yorum.value);
	var sc5 = '&meil='+ escape(document.yorumform.meil.value);
	var sc6 = '&kod='+ escape(document.yorumform.kod.value);
	var sc=sc0+sc1+sc2+sc3+sc4+sc5+sc6;
	JXP(1, "sonuc", "modul/yorum/yorum_ekle.php", sc);
}
function arkadasa_gonder(oid,page)
{ 
	var sc0 = 'oid='+ oid;
	var sc1 = '&yisim='+ escape(document.arkadasform.yisim.value);
	var sc2 = '&ymail='+ escape(document.arkadasform.ymail.value);
	var sc3 = '&fisim='+ escape(document.arkadasform.fisim.value);
	var sc4 = '&fmail='+ escape(document.arkadasform.fmail.value);
	var sc5 = '&kod='+ escape(document.arkadasform.kod.value);
	var sc=sc0+sc1+sc2+sc3+sc4+sc5;
	JXP(1, "sonuc1", page, sc);
}

function textCounter(field,cntfield,maxlimit)
{
	if (field.value.length > maxlimit)
	{
		field.value = field.value.substring(0, maxlimit);
	}
	else
	{
		cntfield.value = maxlimit - field.value.length;
	}
}
function link_ekle(cid)
{ 
	var sc0 = 'cid='+ cid;
	var sc1 = '&ekleyen='+ escape(document.linkform.ekleyen.value);
	var sc2 = '&meil='+ escape(document.linkform.meil.value);
	var sc3 = '&baslik='+ escape(document.linkform.baslik.value);
	var sc4 = '&url='+ escape(document.linkform.url.value);
	var sc5 = '&aciklama='+ escape(document.linkform.aciklama.value);
	var sc6 = '&kod='+ escape(document.linkform.kod.value);
	var sc=sc0+sc1+sc2+sc3+sc4+sc5+sc6;
	JXP(1, "sonuc", "modul/link/link_ekle.php", sc);
}

function ilan_ekle(kid)
{ 
	var sc0 = 'kid='+ kid;
	var sc1 = '&baslik='+ escape(document.ilanform.baslik.value);
	var sc2 = '&ilan='+ escape(document.ilanform.ilan.value);
	var sc3 = '&gun='+ escape(document.ilanform.gun.value);
	var sc4 = '&ay='+ escape(document.ilanform.ay.value);
	var sc5 = '&yil='+ escape(document.ilanform.yil.value);
	var sc6 = '&mail='+ escape(document.ilanform.mail.value);
	var sc7 = '&tel='+ escape(document.ilanform.tel.value);
	var sc8 = '&kod='+ escape(document.ilanform.kod.value);
	var sc=sc0+sc1+sc2+sc3+sc4+sc5+sc6+sc7+sc8;
	JXP(1, "sonuc", "modul/seri_ilan/ilan_ekle.php", sc);
}

function arsiv_getir()
{
	var url;
	var gun=document.arsivform.gun.value;
	var ay=document.arsivform.ay.value;
	var yil=document.arsivform.yil.value;
	url="index.php?bolum=haber&islem=arsiv_detay&getir=gunluk&gun="+gun+"&ay="+ay+"&yil="+yil;
	location.href=url;
}
function eczane_getir()
{
	var url;
	var gun=document.phar.gun.value;
	var ay=document.phar.ay.value;
	var yil=document.phar.yil.value;
	url="admin.php?page=eczane&islem=nobetciler&gun="+gun+"&ay="+ay+"&yil="+yil;
	location.href=url;
}

function firma_ekle(kid)
{ 
	var sc0 = 'kid='+ kid;
	var sc1 = '&firma='+ escape(document.firmaform.firma.value);
	var sc2 = '&yetkili='+ escape(document.firmaform.yetkili.value);
	var sc3 = '&faaliyet='+ escape(document.firmaform.faaliyet.value);
	var sc4 = '&sehir='+ escape(document.firmaform.sehir.value);
	var sc5 = '&adres='+ escape(document.firmaform.adres.value);
	var sc6 = '&tel='+ escape(document.firmaform.tel.value);
	var sc7 = '&fax='+ escape(document.firmaform.fax.value);
	var sc8 = '&web='+ escape(document.firmaform.web.value);
	var sc9 = '&mail='+ escape(document.firmaform.mail.value);
	var sc10 = '&kod='+ escape(document.firmaform.kod.value);
	var sc=sc0+sc1+sc2+sc3+sc4+sc5+sc6+sc7+sc8+sc9+sc10;
	JXP(1, "sonuc", "modul/firma_rehberi/firma_ekle.php", sc);
}

function yeni_uye()
{ 
	var sc0 = '&isim='+ escape(document.uyeform.isim.value);
	var sc1 = '&user='+ escape(document.uyeform.user.value);
	var sc2 = '&pass='+ escape(document.uyeform.pass.value);
	var sc3 = '&pass2='+ escape(document.uyeform.pass2.value);
	var sc4 = '&email='+ escape(document.uyeform.email.value);
	var sc5 = '&web='+ escape(document.uyeform.web.value);
	var sc6 = '&icq='+ escape(document.uyeform.icq.value);
	var sc7 = '&sehir='+ escape(document.uyeform.sehir.value);
	var sc8 = '&meslek='+ escape(document.uyeform.meslek.value);
	var sc9 = '&imza='+ escape(document.uyeform.imza.value);
	var sc10 = '&mgoster='+ escape(document.uyeform.mgoster.value);
	var sc11 = '&kod='+ escape(document.uyeform.kod.value);
	var sc=sc0+sc1+sc2+sc3+sc4+sc5+sc6+sc7+sc8+sc9+sc10+sc11;
	JXP(1, "sonuc", "modul/uye/uye_ekle.php", sc);
}

function guncelle()
{ 
	var sc0 = '&isim='+ escape(document.guncelleform.isim.value);
	var sc1 = '&mail='+ escape(document.guncelleform.mail.value);
	var sc2 = '&web='+ escape(document.guncelleform.web.value);
	var sc3 = '&icq='+ escape(document.guncelleform.icq.value);
	var sc4 = '&sehir='+ escape(document.guncelleform.sehir.value);
	var sc5 = '&meslek='+ escape(document.guncelleform.meslek.value);
	var sc6 = '&imza='+ escape(document.guncelleform.imza.value);
	var sc7 = '&mgoster='+ escape(document.guncelleform.mgoster.value);
	var sc=sc0+sc1+sc2+sc3+sc4+sc5+sc6+sc7;
	JXP(1, "sonuc", "modul/uye/guncelle.php", sc);
}

function sifre_degis()
{ 
	var sc0 = '&sifre_old='+ escape(document.sifreform.sifre_old.value);
	var sc1 = '&sifre_new='+ escape(document.sifreform.sifre_new.value);
	var sc2 = '&sifre_new2='+ escape(document.sifreform.sifre_new2.value);
	var sc=sc0+sc1+sc2;
	JXP(1, "sonuc2", "modul/uye/sifre_degis.php", sc);
}

function ref()
{
	window.refresh();	
}

function sifremi_unuttum()
{ 
	var sc0 = '&username='+ escape(document.sifreform.username.value);
	var sc1 = '&mail='+ escape(document.sifreform.mail.value);
	var sc=sc0+sc1;
	JXP(1, "sonuc3", "modul/uye/sifre_gonder.php", sc);
}
function preloadImages() 
{
	var d=document;
	if(d.images) 
	{
		if(!d.MM_p)
			d.MM_p = new Array();
		var i,j=d.MM_p.length,a = preloadImages.arguments;
		for(i= 0; i < a.length; i++)
		if (a[i].indexOf("#") != 0)
		{
			d.MM_p[j] = new Image;
			d.MM_p[j++].src = a[i];
		}
	}
}

function ch(id,param,title)
{
	document.getElementById('mainpicture').src=param.replace("\\","");
	document.getElementById('bigt').innerHTML=title.replace("\\","");
	document.getElementById('bigt').innerHTML=title.replace("\\","");
}
	function chng(p)
	{
		for(i=0;i<7;i++)
		{
			if(i==p)
			{
				document.getElementById('baslik'+i).style.display='';
				document.getElementById('ozet'+i).style.display='';
			}
			else
			{
				document.getElementById('baslik'+i).style.display='none';
				document.getElementById('ozet'+i).style.display='none';
			}
		}
	}