function Goster(layerName, shadowLayerName)
{
if (document.getElementById) // Netscape 6 and IE 5+
{
var targetElement = document.getElementById(layerName);
var shadowElement = document.getElementById(shadowLayerName);
targetElement.style.top = shadowElement.style.top;
targetElement.style.visibility = 'visible';
}
}
function Gizle(layerName)
{
if (document.getElementById) 
{
var targetElement = document.getElementById(layerName);
targetElement.style.visibility = 'hidden';
}
}
function gostert(al)
{
     if (document.getElementById(al).style.display == 'none'){
          document.getElementById(al).style.display = 'block';
     }
}

function sakla(al)
{
     if (document.getElementById(al).style.display == 'none'){
          document.getElementById(al).style.display = 'none';
     }
     else{
          document.getElementById(al).style.display = 'none';
     }
}
function cevir(al)
{
     if (document.getElementById(al).style.display == 'none'){
          document.getElementById(al).style.display = 'block';
     }
     else {
          document.getElementById(al).style.display = 'none';
     }
}

function vinn(){
if (document.ekontrol.entry.value=='' || document.ekontrol.entry.value.length<'10'){
document.ekontrol.entry.style.borderColor='#CBCBCB';
document.ekontrol.entry.value='Bu kadar kisa mi?';
return false;
}
if (document.ekontrol.entry.value.length>'500'){
document.ekontrol.entry.style.backgroundColor='#D43E7F';
document.ekontrol.entry.style.borderColor='#CBCBCB';
document.ekontrol.entry.value=document.ekontrol.entry.value+' - Çok uzun oldu';
return false;
}
}

function nudge(data) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = 10; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
}
}
}
}

function mailkontrol(){
var m=document.getElementById('mail').value;
var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+(\.[a-zA-Z0-9]{2,4})?$/;
if (filter.test(m)) {
document.getElementById('kontrol').style.display='none';
return true;
}
else {
document.getElementById('kontrol').style.display='block';
return false;
}
}
function kontrol(){
if (document.formum.ad.value=='' || document.formum.ad.value=='Lütfen Doldurun'){
document.formum.ad.style.backgroundColor='#F97676';
document.formum.ad.style.borderColor='#F40D0D';
document.formum.ad.value='Lütfen Doldurun';
return false;
}
if (document.formum.mail.value=='' || document.formum.mail.value=='Lütfen Doldurun'){
document.formum.mail.style.backgroundColor='#F97676';
document.formum.mail.style.borderColor='#F40D0D';
document.formum.mail.value='Lütfen Doldurun';
return false;
}
if (document.formum.tel.value=='' || document.formum.tel.value=='Lütfen Doldurun'){
document.formum.tel.style.backgroundColor='#F97676';
document.formum.tel.style.borderColor='#F40D0D';
document.formum.tel.value='Lütfen Doldurun';
return false;
}
if (document.formum.mesaj.value=='' || document.formum.mesaj.value=='Lütfen Doldurun'){
document.formum.mesaj.style.backgroundColor='#F97676';
document.formum.mesaj.style.borderColor='#F40D0D';
document.formum.mesaj.value='Lütfen Doldurun';
return false;
}
}

function temizle(ne){
if (document.getElementById(ne).value=='Lütfen Doldurun'){
document.getElementById(ne).style.backgroundColor='#F97676';
document.getElementById(ne).style.borderColor='#B2ADAD';
document.getElementById(ne).value='';
}
}

function sak(al)
{
     if (document.getElementById(al).style.display == 'none'){
          document.getElementById(al).style.display = 'block';
     }
}

function gos(al)
{
     if (document.getElementById(al).style.display == 'none'){
          document.getElementById(al).style.display = 'none';
     }
     else{
          document.getElementById(al).style.display = 'none';
     }
}
function cev(al)
{
     if (document.getElementById(al).style.display == 'none'){
          document.getElementById(al).style.display = 'block';
     }
     else {
          document.getElementById(al).style.display = 'none';
     }
}