function addToBook(GirlID) { url = '/addToBook/to'+GirlID+'.html'; window.open(url,'addressbook','scrollbars=no,menubar=0,status=1,resizable=no,marginheight=0,marginwidth=0,toolbar=no,width=220,height=220'); } function makeLink(host) { if (document.all) window.external.AddFavorite("http://" + host, host + " - E-mail thousands of Russian Ladies NOW!"); } function LinksSpotter() { for(c = 0;c < document.links.length; c++) { var s = ''; if((document.links[c].href.indexOf("javascript:")==-1)&&(document.links[c].href.indexOf("mailto:")==-1)&&(document.links[c].href.indexOf(document.location.href)==-1)) { if(document.links[c].href.indexOf("#")>0) { s=document.links[c].href.slice(document.links[c].href.indexOf("#")); document.links[c].href=document.links[c].href.substring(0,document.links[c].href.indexOf("#")); } if ((document.links[c].href.indexOf("&linkID")>-1)||(document.links[c].href.indexOf("?linkID")>-1)) { document.links[c].href=document.links[c].href.substring(0,document.links[c].href.indexOf("linkID")-1); } if((document.links[c].href.indexOf("?")) == -1) document.links[c].href+="?"; else document.links[c].href+="&"; document.links[c].href += "linkID=" + c + s; } } } function GoRBS(link) { window.location = "http://www.russianbrides.com" + link } function OpenCenterWindow(url, windowName, width, height, resizable, scrollbars) { var top, left; scrollbars = scrollbars || "no"; left = screen.availWidth / 2 - width / 2; top = screen.availHeight / 2 - height / 2; window.open(url, windowName, 'scrollbars=' + scrollbars + ',menubar=0,status=0,resizable=' + resizable + ', marginheight=0, marginwidth=0, toolbar=no, width=' + width + ',height=' + height + ', top=' + top + ', left=' + left); } function createCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; document.cookie = name + "=" + value + expires + "; path=/"; }