function print_time() { var month_array = Array('Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'); var currentTime = new Date() var month = currentTime.getMonth(); var month_ = month_array[month]; var month = (currentTime.getMonth() < 10)?'0'+currentTime.getMonth():currentTime.getMonth(); var day = (currentTime.getDate() < 10)?'0'+currentTime.getDate():currentTime.getDate() var year = currentTime.getFullYear() var current_date = day + ' ' + month_ + ' ' + year; var hour = currentTime.getHours(); var minutes = currentTime.getMinutes(); hour = (hour<10)?'0'+hour:hour; minutes = (minutes<10)?'0'+minutes:minutes; current_date+= ' ' + hour + ':' + minutes; $('the_clock').set('html',current_date); } function mpopup(url,win_width,heights,scrolls) { widths = (window.screen.width - win_width) /2; mywindow = window.open (url,"mywindow","location=0,status=0,scrollbars="+scrolls+", width="+win_width+",height="+heights); mywindow.moveTo(widths,100); } function makeURL(nod){ var title = encodeURI(document.title); var url = escape(location.href); var options = "height=700,width=800,titlebar=no,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=1"; var mURL=''; if(nod==1) mURL="http://www.facebook.com/sharer.php?t=" + title + "&u=" + url; if(nod==2) mURL="http://www.google.com/bookmarks/mark?op=edit&bkmk=" + url + "&title=" + title; if(nod==3) mURL="http://myweb2.search.yahoo.com/myresults/bookmarklet?&u=" +url+ "&t=" + title; if(nod==4) mURL="http://www.mixx.com/submit/story?title="+title+"&page_url="+url+"&partner=Milliyet&description="; if(nod==5) mURL="http://digg.com/submit?url="+url+"&title=" + title; if(nod==6) mURL="http://www.stumbleupon.com/submit?url="+url+"&title=" + title; if(nod==7) mURL="http://del.icio.us/post?url="+url+"&title=" + title; if(nod==8) mURL="http://reddit.com/submit?url="+url+"&title=" + title; if(nod==9) mURL="http://twshot.com/share.aspx?url="+url+"&title=" + title; if(nod==10) mURL="http://www.myspace.com/Modules/PostTo/Pages/?l=2&u=" +url+ "&t="+title+"&c="+title; if(nod==11) mURL="http://friendfeed.com/share/bookmarklet/frame#title=" + title + "&url="+url; if(nod==12) mURL="https://www.google.com/accounts/ServiceLogin?service=blogger"; if(nod==13) mURL="http://login.live.com/login.srf"; if(nod==14) mURL="http://www.linkedin.com/shareArticle?mini=true&url="+url+"&title="+title; window.open(mURL.replace(/amp;/gi,''),null,options); AddArticleShare(nod,'http://www.milliyet.com.tr/'); } function go_back_history() { urll_ = location.href; if(urll_.indexOf('#top') != -1) javascript:history.go(-2) else javascript:history.go(-1) } function echeck(str) { var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ return false } if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ return false } if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ return false } if (str.indexOf(at,(lat+1))!=-1){ return false } if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ return false } if (str.indexOf(dot,(lat+2))==-1){ return false } if (str.indexOf(" ")!=-1){ return false } return true } function validate_form() { passwd = document.getElementById('passwd'); passwd_ = document.getElementById('passwd').value; email = document.getElementById('email'); email_ = document.getElementById('email').value; ids = new Array(); if(passwd_.length < 4) ids.push('passwd'); if(!echeck(email_)) ids.push('email'); if(ids.length> 0) { for(i=0;i 0) { for(i=0;i