function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}




function confirmSubmit(msg)
{
var agree = confirm(msg);
if (agree)
	return true ;
	
else
	return false ;
}



function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
}



function EBultenFC() {
if (Ebulten.fldEposta.value == 'E-posta adresiniz.') {
alert("E-posta adresi zorunlu alandır.");
Ebulten.fldEposta.focus();
return false;  
}
if (Ebulten.fldEposta.value == '') {
alert("E-posta adresi zorunlu alandır.");
Ebulten.fldEposta.focus();
return false;  
}

var epostasi = Ebulten.fldEposta.value
if ( (epostasi.indexOf ('@',0) == -1) || (epostasi.indexOf('.',0) == -1) || (epostasi.indexOf(' ',0) != -1) || (epostasi.length<6) || epostasi.indexOf ('@',0) != epostasi.lastIndexOf ('@') )
{
alert ("Geçersiz eposta adresi.");
Ebulten.fldEposta.focus();
return false;
}
}