<!-- // JavaScript Document
function 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 funcClose() {
 window.self.close()
}

function funcOpenWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function funcCheckAll(checkObj, value){
	formobj = checkObj.form;
	for (var i = 0; i < formobj.elements.length; i++){
		elm = formobj.elements[i];
		if (elm.type == "checkbox" && elm.name == value){
			elm.checked = checkObj.checked;
		}
	}
}

function disableIt(t) {if(!t){alert("Error!");return(false);};t.readOnly = true;t.disabled = true;}
function unDisableIt(t) {if(!t){alert("Error!");return(false);};t.readOnly = false;t.disabled = false;}
function hiddenIt(t) {if(!t){alert("Error!");return(false);};t.style.display = "none";}
function unHiddenIt(t) {if(!t){alert("Error!");return(false);};t.style.display = "";}
function visibleIt(t) {if(!t){alert("Error!");return(false);};t.style.visibility = "visible";}
function inVisibleIt(t) {if(!t){alert("Error!");return(false);};t.style.visibility = "hidden";}
function changeClass(t,value){if(!t){alert("Error!");return(false);};t.style.currentStyle = value;}
function ColumnOn(sStyle){sStyle.background	= "#F5C058";}
function ColumnOff(sStyle){sStyle.background = "#C3DAF9";}
function ColumnDataOn(sStyle){sStyle.background	= "#EAF1F9";}
function ColumnDataOff(sStyle){sStyle.background = "#FFFFFF";}

function funcIsNumeric(o,a) {
	var isNum = /^[0-9-'.'-',']*$/;
	var alerts = a

	if (!isNum.test(o.value)) {
		alert(alerts);
		o.value = o.value.replace(/[^0-9-'.']/g,"");
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_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 MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function readCookie(name){
  var cookieValue = "";
  var search = name + "=";
  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;
      cookieValue = unescape(document.cookie.substring(offset, end))
    }
  }
  return cookieValue;
}

function writeCookie(name, value, hours){
  var expire = "";
  if(hours != null) {
    expire = new Date( (new Date()).getTime() + hours * 3600000 );
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}

function funcSelect(oSelect,sValue){
	if(!oSelect.type)oSelect = findObj(oSelect)
	for (var i = 0; i < oSelect.options.length; i++){
		if (oSelect.options[i].value == sValue) oSelect.options[i].selected = true;
	}
}

function funcCharLenght(sObj,sLeft,sText,iLenght) {
	var iLeftLenght = iLenght - sObj.value.length;
	
	if(iLeftLenght <= 0) {
		iLeftLenght=0;
		sText = "<span class='disable'>"+sText+"</span>";
		sObj.value = sObj.value.substr(0,iLenght);
	}

	sLeft.innerHTML = sText.replace("{CHAR}",iLeftLenght);
}

function funcOpenEditor(){
	_editor_url = "";
	var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
	if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 6; }
	if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 6; }
	if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 6; }
	if (win_ie_ver >= 5.5) {
		document.write('<scr'+'ipt src="js/_editor/htmlarea.js" language="Javascript1.2"></scr'+'ipt>');  
	} else {
		document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>');
	}
}

function hizlandir(){
	if(findObj("marqueeProperties").scrollAmount < 10){
		findObj("marqueeProperties").scrollAmount = parseInt(findObj("marqueeProperties").scrollAmount)+1;
		findObj("areaSpeed").innerHTML = findObj("marqueeProperties").scrollAmount;
	}
}

function yavaslat(){
	if(findObj("marqueeProperties").scrollAmount > 1){
		findObj("marqueeProperties").scrollAmount = parseInt(findObj("marqueeProperties").scrollAmount)-1;
		findObj("areaSpeed").innerHTML = findObj("marqueeProperties").scrollAmount;
	}
}

function hizgoster(){findObj("areaSpeed").innerHTML = findObj("marqueeProperties").scrollAmount;}

function geri(){
	findObj("marqueeProperties").direction = "right";
}

function ileri(){
	findObj("marqueeProperties").direction = "left";
}


/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}
//-->