function openPictureWindow_Scud(imageName,alt) {
	var iWidth = 400;
	var iHeight = 300;
	var  iLeft = (screen.availWidth - iWidth) / 2;
	var  iTop = (screen.availHeight - iHeight) / 2;
	newWindow = window.open("","newWindow","width=" + iWidth + ",height=" + iHeight + ",top=" + iTop + ",left=" + iLeft);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title><scr'+'ipt language="javascr'+'ipt">function Hide(ID){var o = document.getElementById(ID);o.style.display="none";}function boyutlandir(scud){genislik=eval(scud.offsetWidth)+8;yukseklik=eval(scud.offsetHeight)+27;window.resizeTo(genislik,yukseklik);yenix=(screen.availWidth-genislik)/2;yeniy=(screen.availHeight-yukseklik)/2;');
	newWindow.document.write('window.moveTo(yenix,yeniy);}</scr'+'ipt></head><body bgcolor=#000 leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onload="window.setTimeout(\'self.close\',20000)" onresize="boyutlandir(resim)" onload="boyutlandir(resim)">');
	newWindow.document.write('<div id="lblWait" name="lblWait" style="color:red;text-align:center;font-family:Tahoma;font-weight:bold;margin:' + ((iHeight - 30) / 2) + 'px auto">Lütfen Bekleyiniz...</div><img src='+imageName+' id=resim onload="boyutlandir(resim);Hide(\'lblWait\')" alt=""><scr'+'ipt language="javascr'+'ipt">Hide("lblWait");boyutlandir(resim);</scr'+'ipt>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}



<!-- Resim Yükleme Basladi

function Popper1 (str)
{
var popOneUp = window.open(str,"popOneUp","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhistory=1,width=350,height=200,left=250,top=250"); }

// Resim Yükleme Bitti -->

<!-- Resim Izleme Basladi

function Popper_resimbak (str)
{
var popOneUp = window.open(str,"popOneUp","toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhistory=1,width=550,height=400,left=250,top=250"); }

// Resim Izleme Bitti -->


<!--
function GetDialogWin(my_url,win_name,width_x,height_y,top_pos,left_pos,scrollbars) {	var editwin = "";editwin = editwin + "width=" + width_x;editwin = editwin + ",height=" + height_y;editwin = editwin + ",resizable=yes";	editwin = editwin + ",scrollbars=yes";editwin = editwin + ",menubar=no";editwin = editwin + ",toolbar=no";editwin = editwin + ",directories=no";editwin = editwin + ",location=no";editwin = editwin + ",status=no";editwin = editwin + ",top=" + top_pos;editwin = editwin + ",left=" + left_pos;editwin_win = window.open(my_url,win_name,editwin);editwin_win.focus();editwin_win.opener = self;return (editwin_win);}


var sT 
function changeUrl(surl)
{
	if(surl == "")
		return(false);
	sT.text = "<a href=\"" +surl+ "\" target=_blank>"+ sT.text + "</a>";
	return(true);
}

function createLink()
{
	sT = document.selection.createRange();	
	sTxt = sT.text;  
	if(!sTxt.length > 0)
	{
		alert("select the text that you want to use as link!");
		return( false);
	}
	var mywin = GetDialogWin('','tetst',350,110,50,150,'no');
	mywin.document.title="Insert Link";	
	mywin.document.writeln("<font face=\"verdana\" size=1>");
	mywin.document.writeln("<b>" + sTxt + "</b>");
	mywin.document.writeln("<br>Type the link address:");
	mywin.document.writeln("<br><input type=text name=\"vtxt2\" size=\"35\" value=\"http://www.web-graphics.net\">");
	mywin.document.writeln("<input type=button value=\"Ok\" onClick=\"opener.changeUrl(vtxt2.value);window.close();\">");
	mywin.document.writeln("<br><input type=button value=\"CheckLink\" onClick=\"opener.GetDialogWin(vtxt2.value,'CheckUrl',550,310,150,250,'no');\">");
	
}
function makeBold()
{
	sT = document.selection.createRange();	
	sTxt = sT.text;  
	if(!sTxt.length > 0)
	{
		alert("Lütfen kalın yapacağınız alanı seçin !");
		return( false);
	}
	sT.text = "[B]" + sTxt + "[/B]";


}
function makeItalic()
{
	sT = document.selection.createRange();	
	sTxt = sT.text;  
	if(!sTxt.length > 0)
	{
		alert("Lütfen italik yapacağınız alanı seçin !");
		return( false);
	}
	sT.text = "[I]" + sTxt + "[/I]";
}
function makeupris()
{
	sT = document.selection.createRange();	
	sTxt = sT.text;  
	if(!sTxt.length > 0)
	{
		alert("Lütfen altı çizili yapılacak alanı seçin !");
		return( false);
	}
	sT.text = "[U]" + sTxt + "[/U]";
}
function makeurl()
{
	sT = document.selection.createRange();	
	sTxt = sT.text;  
	if(!sTxt.length > 0)
	{
		alert("Lütfen URL yapacağınız alanı seçin !");
		return( false);
	}
	sT.text = "[URL]" + sTxt + "[/URL]";
}
function makeurla()
{
	sT = document.selection.createRange();	
	sTxt = sT.text;  
	if(!sTxt.length > 0)
	{
		alert("Lütfen Açıklamalı URL yapacağınız alanı seçin !");
		return( false);
	}
	sT.text = "[URL=" + sTxt + "]Linkin Açıklaması[/URL]";
}
function makeimg()
{
	sT = document.selection.createRange();	
	sTxt = sT.text;  
	if(!sTxt.length > 0)
	{
		alert("Lütfen ekliyeceğiniz resmin URL sini seçin !");
		return( false);
	}
	sT.text = "[IMG]" + sTxt + "[/IMG]";

}

function unFormat()
{
	var outtext = "";
	var flag = 0;
	var i = 0;
	sT = document.selection.createRange();	
	sTxt = sT.text; 
	if(!sTxt.length > 0)
	{
		alert("Lütfen format temizliyeceğiniz alanı seçiniz !");
		return( false);
	}
	while(i <= sTxt.length)
	{	
		c = sTxt.charAt(i)
		if(c == "<")
			flag++;
		if(flag==0)
			outtext += c;
		if(c == ">")
			flag--;		
		i++;
	}
	if(flag==0)
		sT.text = outtext;
	else 
		alert("error");
}

//-->









/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate



// İletişim Formu
        var err="#FF4500";
        var tru="#6A6A6A";
        function ValidateForm()
        {
            var f = document.forms['form'];
            var myarr = Array("isim","email","konu","mesaj");
            var fc=0;
            var errtype=true;
            for (var i=0;i<myarr.length;i++)
            {
                a= eval(document.getElementById(myarr[i]).style);
                if(eval('f.'+myarr[i]+'.value.length')>0) {a.color=tru;}
        else
        {   a.color=err; errtype=false;
          if(fc==0) {var z=eval('f.'+myarr[i]);z.focus(); fc=1;}
        }
            }
            if (errtype!=true) {

                        alert('Kırmızı ile işaretlenen alanları doldurunuz.');
                        }
            else {f.submit.disabled = true;}
            return errtype;
        }



// İletişim Formu
        var err="#FF4500";
        var tru="#6A6A6A";
        function ValidateFormTd()
        {
            var f = document.forms['formtd'];
            var myarr = Array("isim","email","soru");
            var fc=0;
            var errtype=true;
            for (var i=0;i<myarr.length;i++)
            {
                a= eval(document.getElementById(myarr[i]).style);
                if(eval('f.'+myarr[i]+'.value.length')>0) {a.color=tru;}
        else
        {   a.color=err; errtype=false;
          if(fc==0) {var z=eval('f.'+myarr[i]);z.focus(); fc=1;}
        }
            }
            if (errtype!=true) {

                        alert('Kırmızı ile işaretlenen alanları doldurunuz.');
                        }
            else {f.submit.disabled = true;}
            return errtype;
        }



// İK Formu
        var err="#FF4500";
        var tru="#6A6A6A";
        function ValidateFormIk()
        {
            var f = document.forms['formIk'];
            var myarr = Array("isim","email","dogum_yil","dogum_yer","nufus_il","nufus_ilce","uyruk","tel_sabit","adres","egitim","beceri","dil","kurs","tecrube","pozisyon");
            var fc=0;
            var errtype=true;
            for (var i=0;i<myarr.length;i++)
            {
                a= eval(document.getElementById(myarr[i]).style);
                if(eval('f.'+myarr[i]+'.value.length')>0) {a.color=tru;}
        else
        {   a.color=err; errtype=false;
          if(fc==0) {var z=eval('f.'+myarr[i]);z.focus(); fc=1;}
        }
            }
            if (errtype!=true) {

                        alert('Kırmızı ile işaretlenen alanları doldurunuz.');
                        }
            else {f.submit.disabled = true;}
            return errtype;
        }
		

if(navigator.appName == "Microsoft Internet Explorer") { 
     http = new ActiveXObject("Microsoft.XMLHTTP"); }  
else { 
     http = new XMLHttpRequest(); } 
 
function kategoriSec() { 
 
     var kategori = document.getElementById('grupX').value; 
     if(kategori!=0) { 
          http.open('get', '?Islem=listele&Kategori=' + kategori); 
          http.onreadystatechange = function() { 
               document.getElementById('sonuc').innerHTML = "Kategoriler yükleniyor..."; 
               if (http.readyState == 4) { 
                    document.getElementById('sonuc').innerHTML = http.responseText; } 
          }; 
          http.send(null); 
     }; 
}

function dilSec() { 
 
     var dil = document.getElementById('kategoriX').value; 
     if(dil!=0) { 
          http.open('get', '?Islem=listele2&dil=' + dil); 
          http.onreadystatechange = function() { 
               document.getElementById('altdilSonuc').innerHTML = "Alt Kategoriler yükleniyor..."; 
               if (http.readyState == 4) { 
                    document.getElementById('altdilSonuc').innerHTML = http.responseText; } 
          }; 
          http.send(null); 
     }; 
}





