var bookmarkurl="http://www.harunyahya.org"
var bookmarktitle="- Harun Yahya -"

function addbookmark(){
	if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function openwindow4 (url) {
	window.open(url,'bizeulasin','toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,body topmargin=0,leftmargin=0,resizable=0,width=410,height=490');
}

function openwindow (url) {
	window.open(url,'bizeulasin','toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,body topmargin=0,leftmargin=0,resizable=0,width=780,height=520');
}

function openwindow6 (url) {
	window.open(url,'subscribe','toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,body topmargin=0,leftmargin=0,resizable=0,width=400,height=450');
}

function openwindow3 (url) {
	window.open(url,'duped','toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,body topmargin=0,leftmargin=0,resizable=0,width=560,height=450');
}

function openwindow14 (url) {
	win5 = window.open(url,'bunedir','toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,body topmargin=0,leftmargin=0,resizable=0,width=600,height=592');
}

function MM_jumpMenu(targ,selObj,restore) { 
	window.open(selObj.value,'newwindow');
}

function openwindow1(url) {
	window.open(url,'demoWin','toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,body topmargin=0,leftmargin=0,resizable=0,width=390,height=255');
}

function openwindow_diger(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

 <!--
/****************************************************
     AUTHOR: WWW.CGISCRIPT.NET, LLC
     URL: http://www.cgiscript.net
     Use the code for FREE but leave this message intact.
     Download your FREE CGI/Perl Scripts today!
     ( http://www.cgiscript.net/scripts.htm )
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
	if(GetCookie("sid") == "999"){return;}
	document.cookie="sid=999; Path=/; Expires= " + getFuture(1);
	if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
	win.focus();
}

function NewWindow2(mypage,myname,w,h,pos,infocus){
	if(GetCookie("sid2") == "999"){return;}
	document.cookie="sid2=999; Path=/; Expires= " + getFuture(1);
	if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
	win.focus();
}


function getFuture(f){
	var d = new Date();
	d.setTime(d.getTime() + (86400000 * f));
	return d;
}

function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
  		return getCookieVal (j);
  		i = document.cookie.indexOf(" ", i) + 1;
 		if (i == 0) break; 
	}
  	return null;
}

function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
  		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}
// -->

