<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' gerekli.\n'; }
  } if (errors) alert('Formda Bulunan Hatalar:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function PopUpContent(theURL,winName,features) { //v2.0
  window.open(theURL,'Popup','scrollbars=yes,resizable=no,width=700,height=500');
}
//-->
<!-- // load htmlarea
_editor_url = "";                     // URL to htmlarea files
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.0) {
  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>'); }
// -->
<!--


//Help files
// Palete link verirken aşağıda kodu kullan
//<a href="javascript:paletteOpen('Tarih')"><img src="images/palette.gif" width="19" height="20" alt="Open Colour Palette" border="0" name="Tarih"></a>

var recspage = "This is the number of images that will be displayed per gallery page"
var colnum = "This is the number of columns in the table - ie for 4 images per row, set this to 4"
var trback = "This is the background colour of the table that the thumbnail gallery will be displayed in - leave blank for a transparent background (not recommended)"
var lightbordercolor = "This is the light border colour for the thumbnail gallery - leave blank for no border colour"
var darkbordercolor = "This is the dark border colour for the thumbnail gallery - leave blank for no border colour"
var bordersize = "This is the width of the border for the thumbnail gallery table - experiment with different sizes"
var picbordersize = "This is the width of the border that the individual picture will be displayed in - experiment with different sizes"
var picbackcol = "This is the background colour that the individual picture will be displayed upon"
var pageback = "This is the background colour for the gallery"


  bName = navigator.appName;
  var paletteField = "";

      function paletteOpen(fieldName) {
			paletteField = fieldName;

			palette = window.open("","paletteWindow","toolbar=0,location=0,menubar=0,scrollbars=0,resizable=1,width=200,height=180");
			palette.location.href = "popups/palette.htm";
			palette.focus();
      }

      function paletteFieldUpdate(fieldName) {
			paletteField = fieldName;
      }

      function colorFieldFill(color) {
		var colorObject = eval('document.all.form1.'+paletteField+';');
        colorObject.value = color;
		
		
      }

	function windowPopup(theURL,winName,features) { //v2.0
 		window.open(theURL,winName,features);
		}
	function changeColour(id,colour) {
		tablecolour = '#008000'
			if (colour == '') { 
				id.bgColor = tablecolour;
			}
			else {
				id.bgColor = colour;
			}
	}
function WM_Swap(daImage, daSrc){
  var objStr,obj;
  if(document.images){
    if (typeof daImage == 'string') {
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof daImage == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function CheckEMail(emailStr){
	if(emailStr == ""){
		return false;
	}
	else{
		var checkTLD=1;
		var knownDomsPat=/^(com|net|org|edu|tr|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
		var emailPat=/^(.+)@(.+)$/;
		var specialChars="\\(\\)><@,;:\\\\\\\"\\[\\]";
		var validChars="\[^\\s" + specialChars + "\]";
		var quotedUser="(\"[^\"]*\")";
		var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
		var atom=validChars + '+';
		var word="(" + atom + "|" + quotedUser + ")";
		var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
		var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
		var matchArray=emailStr.match(emailPat);
		
		if (matchArray==null){
			return false;
		}
		var user=matchArray[1];
		var domain=matchArray[2];
		
		for (i=0; i<user.length; i++){
			if (user.charCodeAt(i)>127){
				return false;
			}
		}

		for (i=0; i<domain.length; i++){
			if (domain.charCodeAt(i)>127){
				return false;
		  	}
		}
		if (user.match(userPat)==null){
			return false;
		}
		var IPArray=domain.match(ipDomainPat);
		if (IPArray!=null){
			for (var i=1;i<=4;i++){
				if (IPArray[i]>255){
					return false;
		   		}
			}
			return true;
		}
		var atomPat=new RegExp("^" + atom + "$");
		var domArr=domain.split(".");
		var len=domArr.length;
		for (i=0;i<len;i++){
			if (domArr[i].search(atomPat)==-1){
				return false;
		   }
		}
		if (len<2){
			return false;
		}
		var www;
		www=0;
		for (i=0; i<3; i++){
			
			if ((user.charCodeAt(i)==87)||(user.charCodeAt(i)==119)){
				www++;
			}
		}
		if (www==3)
		{
		return false;
		}
		return true;
	}
}

function SayiKontrol(ths) 
{ 
        if (event.keyCode < 46 || event.keyCode > 57) 
    { 
        event.keyCode = 0; 
        return  false; 
    } 
    else 
        return true; 
} 
// -->
