//------------------------
	_editor_url = "http://www.vemedya.com/veincludes/editor/";                     // URL to htmlarea files
	_editor_field = "";
	var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
	if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
	if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
	if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
	if (win_ie_ver >= 5.5) {
	  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
	  document.write(' language="Javascript1.2"></scr' + 'ipt>');        
	} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
	var MyBgColor ='#FFFFFF';
	var MyBgImg ='';
	// -->
	
	function updateAttributes(){
	document.myform.bgcolor.value=MyBgColor;
	document.myform.background.value=MyBgImg;
	}
	
	
	var config = new Object();    // create new config object

config.width = "90%";
config.height = "200px";
config.bodyStyle = 'background-color: white; font-family: "Verdana"; font-size: x-small;';
config.debug = 0;

// NOTE:  You can remove any of these blocks and use the default config!

config.toolbar = [
    ['fontname'],
    ['fontsize'],
    ['fontstyle'],
    ['linebreak'],
    ['bold','italic','underline','separator'],
//  ['strikethrough','subscript','superscript','separator'],
    ['justifyleft','justifycenter','justifyright','separator'],
    ['OrderedList','UnOrderedList','Outdent','Indent','separator'],
    ['forecolor','backcolor','separator'],
    ['line','Insertlink','InsertImage','htmlmode','separator'],
    ['about','help','popupeditor'],
];

config.fontnames = {
    "Arial":           "arial, helvetica, sans-serif",
    "Courier New":     "courier new, courier, mono",
    "Georgia":         "Georgia, Times New Roman, Times, Serif",
    "Tahoma":          "Tahoma, Arial, Helvetica, sans-serif",
    "Times New Roman": "times new roman, times, serif",
    "Verdana":         "Verdana, Arial, Helvetica, sans-serif",
    "impact":          "impact",
    "WingDings":       "WingDings"
};
config.fontsizes = {
    "1 (8 pt)":  "1",
    "2 (10 pt)": "2",
    "3 (12 pt)": "3",
    "4 (14 pt)": "4",
    "5 (18 pt)": "5",
    "6 (24 pt)": "6",
    "7 (36 pt)": "7"
  };

//config.stylesheet = "http://www.domain.com/sample.css";
  
config.fontstyles = [   // make sure classNames are defined in the page the content is being display as well in or they won't work!
  { name: "headline",     className: "headline",  classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },
  { name: "arial red",    className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },
  { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" }

// leave classStyle blank if it's defined in config.stylesheet (above), like this:
//  { name: "verdana blue", className: "headline4", classStyle: "" }  
];
//------------------------

	var numericChars = "0123456789"
	var whitespace = " \t\n\r";
	var legalChars = "abcdefghijklmnopqrstuvwxyz0123456789_-."
	
	function isEmpty(s)
      { return ((s == null) || (s.length == 0)) }
	
	function isWhitespace (s)
      {
           var i;

           if (isEmpty(s)) return true;

           for (i = 0; i < s.length; i++)
           {
           
                var c = s.charAt(i);

                if (whitespace.indexOf(c) == -1) return false;
           }

          return true;
      }
      
      function checkNumericChars (n) {
       var nLength = n.length;
	   var i = 0;
        
        while (i < nLength) {
		  if (numericChars.indexOf (n.charAt(i)) == -1) return false;	
          i++; 
        }
       return true
      }
      function checkLegalChars (s) {
       var sLength = s.length;
	   var i = 0;
        
        while (i < sLength) {
		  if (legalChars.indexOf (s.charAt(i)) == -1) return false;	
          i++; 
        }
       return true
      }

      function isEmail(s) {
 
       if (isWhitespace(s)) {
         return false;
       }
		
		var sLength = s.length;
		if (sLength < 6) return false;
        var i = 0;
        
        while ((i < sLength) && (s.charAt(i) != "@")) {
		  if (legalChars.indexOf (s.charAt(i)) == -1) return false;	
          i++; 
        }
        
        if ((i < 2) || (i > (sLength - 3)) || (s.charAt(i) != "@")) {
		  return false;
        }
                
        Index = i; 
        i++;
		    
        while ((i < sLength) && (s.charAt(i) != ".")) {
          if (legalChars.indexOf (s.charAt(i)) == -1) return false;	
          i++;
        }
		
        if ((i < (Index + 3)) || (i >= sLength - 2) || (s.charAt(i) != ".")) {
          return false;
        }
        
        while (i < sLength) {
          if (legalChars.indexOf (s.charAt(i)) == -1) return false;	
          i++;
        }
        return true;
 
      }
      
     function isEmailReg (s){
		var emailexp = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]{2,3}$/	 
		if (emailexp.test(s)) return true; else return false;
		
      }
   	 function SetCookie() {
		document.cookie = "MYCookie='13'"
		if (document.cookie==""){
			window.location= "http://e-gaziantep.net/hatamesaj.asp?hatakodu=1"
		 }
	  }
		
//----------
		PositionX = 100;
PositionY = 100;
defaultWidth = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Yükleniyor...</title>');
writeln('<style>body{margin:0px;}</style>');

writeln('<style type="text/css">');
writeln('<!--');
writeln('a:link {');
writeln('	text-decoration: none;');
writeln('	color: #000000;');
writeln('}');
writeln('a:visited {');
writeln('	text-decoration: none;');
writeln('	color: #000000;');
writeln('}');
writeln('a:hover {');
writeln('	text-decoration: none;');
writeln('	color: #FFFFFF;');
writeln('}');
writeln('a:active {');
writeln('text-decoration: none;');
writeln('color: #FFFFFF;');
writeln('}');
writeln('a {');
writeln('	font-family: Verdana;');
writeln('	font-size: 10px;');
writeln('	font-weight: bold;');
writeln('}');




writeln('-->');
writeln('</style>');




writeln('<sc'+'ript>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');
writeln('if (isNN){'); 
writeln('window.innerWidth=document.images["images"].width;');
writeln('window.innerHeight=document.images["images"].height;}}');
writeln('function doTitle(){document.title=".:: Resim Görünüm ::.";}');
writeln('</sc'+'ript>');

writeln('      <table width="100%" height="15" border="0" cellpadding="0" cellspacing="0">');
writeln('        <tr bgcolor="93AC00">');
writeln('          <td width="50%" height="15"><div align="center"><a href="javascript:window.close()" class="style2">Kapat</a></div></td>');
writeln('        </tr>');
writeln('      </table>');
	  
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="camdibi" src='+imageURL+' style="display:block"></body></html>');
close(); 
}}
//--------------------
//Tarih

<!-- Original:  Sandeep V. Tamhankar (stamhankar@hotmail.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function isValidDate(dateStr) {
// Checks for the following valid date formats:
// MM/DD/YY   MM/DD/YYYY   MM-DD-YY   MM-DD-YYYY
// Also separates date into month, day, and year variables

var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{2}|\d{4})$/;

// To require a 4 digit year entry, use this line instead:
// var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{4})$/;

var matchArray = dateStr.match(datePat); // is the format ok?
if (matchArray == null) {
alert("Girdiginiz Tarih dogru degil.\nLütfen kontrol ederek tekrar deneyin.")
return false;
}
month = matchArray[1]; // parse date into variables
day = matchArray[3];
year = matchArray[4];
if (month < 1 || month > 12) { // check month range
alert("Ay ( 01 - 12 ) arasinda sayisal bir deger olmalidir.");
return false;
}
if (day < 1 || day > 31) {
alert("Gün ( 01 - 31 ) arasinda sayisal bir deger olmalidir.");
return false;
}
if ((month==4 || month==6 || month==9 || month==11) && day==31) {
alert(year+" Yilinda Ay "+month+" 31 gün çekmez !")
return false
}
if (month == 2) { // check for february 29th
var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
if (day>29 || (day==29 && !isleap)) {
alert("Subat " + year + " yilinda " + day + " çekmez !");
return false;
   }
}
return true;  // date is valid
}
//  End -->




//--------------------------

function sayisalkontrol(alan) {
	if (! checkNumericChars (alan.value)) {
		alan.value="";
	}
}

//-------------------------------------------
function bookmark(adres,not){
		window.external.AddFavorite(adres,not);
}
//-------------------------------
function krKontrol(objThis,sName,nMaxLength,sCountName)
		{
			var sFormName=objThis.form.name;
			document[sFormName][sCountName].value= nMaxLength;
			if (document[sFormName][sName].value.length > nMaxLength)
			{
				document[sFormName][sName].value = document[sFormName][sName].value.substring(0,nMaxLength);
				var charleft = 0;
			}
			else {charleft = nMaxLength - document[sFormName][sName].value.length}
			document[sFormName][sCountName].value = charleft;
		}
//-------------------------------------------------