CNN CNN

updated 10:20 a.m.EST, Sun February 28, 2010
Hi! Log in or sign up to get great personalized stuff here!
Newspulse  
Local   
Sports  
Markets  

Quick vote

Should the Pentagon allow women to serve in full combat roles?
CNN TV Schedule | HLN | Listen to CNN |

CNN TV

The price of politics
AC360, Monday 10 p.m. ET
Israel's Ehud Barak
Amanpour, Sun. 2 p.m. ET
Health care price-gouging
Sat. & Sun. 7:30 a.m. ET
See Past Highlights
Un-highlight
Send using local EMail
Send Embedded HighlightsSee more functionality...";$("clear_selection2")."roohActive"),true)}}function showExtras(){E("tabcontainer").innerHTML=tempHTML;E("ddtabs1").style.visibility="visible";E("sharingicons").style.display="inline";E("moOptions").style.display="inline";E("sharelabel").innerHTML=" Share: "}function onmouseleave_HL(){hide_delete_popup()}function onmouseover_HL(a){var b;var e;var c;if(a!=null){e=parseInt(a.pageX);c=parseInt(a.pageY)}else{a=window.event;c=parseInt(a.clientY)+parseInt(getDocScrollTop());e=parseInt(a.clientX)+parseInt(getDocScrollLeft())}if(a.target){b=a.target}else{if(a.srcElement){b=a.srcElement}}if(b.nodeType==3){b=b.parentNode}show_delete_popup(b,e,c)}function rgbToHex(g){var e=/rgb((.+),(.+),(.+))/i.exec(g);var j=parseInt(e[1]);var h=parseInt(e[2]);var a=parseInt(e[3]);var c=j.toString(16);if(c=="0"){c="00"}var b=h.toString(16);if(b=="0"){b="00"}var f=a.toString(16);if(f=="0"){f="00"}return"#"+(c+b+f).toLowerCase()}function change_others(q,C,K,X,k){if(HLS_ACTIVE==0&&ID_SAVED_PAGE==0){alert("Heh, heh, not so fast. Please make a real hilight. rn Lets not fill up the database with junk hilights. rnPlease try again...");window.getSelection().removeAllRanges();return 0}selObj=window.getSelection();var b=screenX;var a=screenY;var j=clientX;var h=clientY;if(flag_from_restore!=1){if(selObj.toString().length==0){return}if(selObj.toString().length>=2000){alert("Please do not highlight ON TOP OF EXISTING highlights / highlight lesser text");selObj.removeAllRanges();return}range=document.createRange();range.setStart(selObj.focusNode,selObj.focusOffset);range.setEnd(selObj.focusNode,selObj.focusOffset);if(range.comparePoint(selObj.anchorNode,selObj.anchorOffset)==1){var V=selObj.anchorNode;var g=selObj.anchorOffset;window.getSelection().collapse(selObj.focusNode,selObj.focusOffset);window.getSelection().extend(V,g);selObj=window.getSelection()}}flag_from_restore=0;sel_range=selObj.getRangeAt(0);inRange=function(y){range_compare=document.createRange();range_compare.selectNode(y);if((sel_range.compareBoundaryPoints(Range.START_TO_START,range_compare)>=0)&&(sel_range.compareBoundaryPoints(Range.END_TO_END,range_compare)<=0)){return NodeFilter.FILTER_ACCEPT}else{if((sel_range.compareBoundaryPoints(Range.START_TO_START,range_compare)>=0)&&(sel_range.compareBoundaryPoints(Range.END_TO_END,range_compare)>=0)&&(sel_range.compareBoundaryPoints(Range.END_TO_START,range_compare)<=0)){return NodeFilter.FILTER_ACCEPT}else{if((sel_range.compareBoundaryPoints(Range.START_TO_START,range_compare)<=0)&&(sel_range.compareBoundaryPoints(Range.END_TO_END,range_compare)<=0)&&(sel_range.compareBoundaryPoints(Range.START_TO_END,range_compare)>=0)){return NodeFilter.FILTER_ACCEPT}else{if((sel_range.compareBoundaryPoints(Range.START_TO_START,range_compare)<=0)&&(sel_range.compareBoundaryPoints(Range.END_TO_END,range_compare)>=0)){return NodeFilter.FILTER_ACCEPT}else{return NodeFilter.FILTER_SKIP}}}}};inRange_ff=function(y){if(selObj.containsNode(y,true)){return NodeFilter.FILTER_ACCEPT}else{return NodeFilter.FILTER_SKIP}};var n,Q,J,Z;if(q==0){if(selObj.anchorNode.nodeType!=3||selObj.anchorNode.textContent==""){var Y;if(BrowserDetect.browser=="Firefox"||BrowserDetect.browser=="Opera"){Y=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,inRange_ff,true)}else{Y=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,inRange,true)}var O=Y.nextNode();var P;while(O){P=Y.currentNode;O=Y.nextNode();if(P.textContent.replace(/s+/g,"").length==0){continue}else{break}}var o=selObj.focusNode;var l=selObj.focusOffset;window.getSelection().collapse(P,0);window.getSelection().extend(o,l);selObj=window.getSelection()}sel_range=selObj.getRangeAt(0);Q=get_path_others(selObj.anchorNode);J=selObj.anchorOffset;Z=selObj.toString();var S=document.createElement("div");S.appendChild(sel_range.cloneContents());n=S.innerHTML;if(S.firstChild!=null&&S.firstChild.textContent==""){alert("Please Highlight UNhighlighted Text Only");selObj.removeAllRanges();return}}var Y;if(BrowserDetect.browser=="Firefox"||BrowserDetect.browser=="Opera"){Y=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,inRange_ff,true)}else{Y=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,inRange,true)}var D=0;var A=C==0?E("selectedColor").style.backgroundColor:C;var s=(K==-1)?String(number_of_selections++):String(K);var e=0;var r=document.createRange();var O=Y.nextNode();var T;while(O){var P=Y.currentNode;var N=P.textContent;var B=P.parentNode;O=Y.nextNode();if(N.replace(/s+/g,"").length==0){continue}if((P==selObj.anchorNode)&&(selObj.focusNode==P)){D=1;e=1;var W=N.substring(selObj.anchorOffset,selObj.focusOffset);var u=N.substring(0,selObj.anchorOffset);var t=N.substring(selObj.focusOffset,P.textContent.length);var R=document.createTextNode(W);var z=document.createTextNode(u);var x=document.createTextNode(t);var G=document.createElement("font");G.appendChild(R);G.className="rooh_highlite";G.style.backgroundColor=A;G.setAttribute("roohActive",s);G. W=N.substring(selObj.anchorOffset,P.textContent.length);var M=N.substring(0,selObj.anchorOffset);var R=document.createTextNode(W);var U=document.createTextNode(M);var G=document.createElement("font");G.className="rooh_highlite";G.appendChild(R);G.style.backgroundColor=A;G.setAttribute("roohActive",s);G. W=N.substring(0,selObj.focusOffset);var M=N.substring(selObj.focusOffset,P.textContent.length);var R=document.createTextNode(W);var U=document.createTextNode(M);var G=document.createElement("font");G.className="rooh_highlite";G.appendChild(R);G.style.backgroundColor=A;G.setAttribute("roohActive",s);G. H=document.createElement("font");H.className="rooh_highlite";H.style.backgroundColor=A;H.setAttribute("roohActive",s);H. p=selObj.anchorNode;var L=selObj.focusNode;var I=selObj.anchorOffset;var c=selObj.focusOffset;if((BrowserDetect.browser=="Safari"||BrowserDetect.browser=="Chrome")&&D==0){P=p;if(P.nodeType==3){var W=P.textContent.substring(I,P.textContent.length);var M=P.textContent.substring(0,I);var R=document.createTextNode(W);var U=document.createTextNode(M);var G=document.createElement("font");G.className="rooh_highlite";G.appendChild(R);G.style.backgroundColor=A;G.setAttribute("roohActive",s);G."Safari"||BrowserDetect.browser=="Chrome")&&D==0){P=L;if(P.nodeType==3){var W=P.textContent.substring(0,c);var M=P.textContent.substring(c,P.textContent.length);var R=document.createTextNode(W);var U=document.createTextNode(M);var G=document.createElement("font");G.className="rooh_highlite";G.appendChild(R);G.style.backgroundColor=A;G.setAttribute("roohActive",s);G. f="";var w=document.createTreeWalker(S,NodeFilter.SHOW_TEXT,null,true);var O=w.nextNode();while(O){var P=w.currentNode;O=w.nextNode();if(P.textContent.replace(/s+/g,"").length==0){continue}var H=document.createElement("font");H.style.backgroundColor="#FF0000";H.appendChild(P.cloneNode(true));P.parentNode.replaceChild(H,P)}f=S.innerHTML;HL_counter++;number_of_selections++;E("lastHLtext").value+=" "+n;var v="&reason=1&hlid="+s+"&html_aft_hl="+encodeURIComponent(f)+"&html_bef_hl="+encodeURIComponent(n)+"&path_="+encodeURIComponent(Q)+"&offset_="+J+"&text_="+encodeURIComponent(Z)+"&color="+rgbToHex(E("selectedColor").style.backgroundColor);if(q==0){if(parseInt(GetCookie("numOfHLs"))<1){var F=document.createEvent("MouseEvents");F.initMouseEvent("mouseover",true,true,window,0,b,a,j,h,false,false,false,false,0,null);T.dispatchEvent(F);global_MOB_disp_period=new Date()}tt_change("
 Saving Highlight
","images/tt_blue.gif");if(E("shortcuturl").value.trim()==""||E("shortcuturl").value==null){E("sharingicons").style.display="none";E("shortcuturl").value="Creating Bookmark..."}save_page(v)}}if(GRAB_PEN_STATE==1){E("GRAB_PANE").innerHTML="Put Pen Down";E("HIGHTLIGHT_BUTTON").style.visibility="hidden";document.body.style.cursor="url("+cur_curs+"), auto"}}function change(w,o,k,v,g){if(!tagsFetched){getTags();tagsFetched=true}if((BrowserDetect.browser!="Explorer")){change_others(w,o,k,v,g);return 0}if(HLS_ACTIVE==0&&ID_SAVED_PAGE==0){alert("Heh, heh, not so fast. Please make a real hilight. rn Lets not fill up the database with junk hilights. rnPlease try again...");document.selection.empty();return 0}var b=null;var a=null;b=createRange();var e=get_path_ie(b);var n=get_offset_in_parent(b);var j=getSelectionText();if(j.length<=0){return 0}if(flag_from_restore!=1){if(j.length>=1024){var u=confirm("Are you sure you want to highlight all this?");if(!u){document.selection.empty();return 0}}}if(j.toString().length>=2000){alert("Please do not highlight ON TOP OF EXISTING highlights / highlight lesser text");document.selection.empty();return}flag_from_restore=0;var l=getSelectionHTML();var p=0;var t=o==0?E("selectedColor").style.backgroundColor:o;b.execCommand("BackColor","false",t);var s=(k==-1)?String(number_of_selections++):String(k);try{var h=window.document.body.getElementsByTagName("FONT");for(i=0;i
Select Text to Highlight
","images/tt_shadow.gif");if(E("shortcuturl").value.trim()==""||E("shortcuturl").value==null){E("sharingicons").style.display="none";E("shortcuturl").value="Creating Bookmark..."}save_page(q)}}if(GRAB_PEN_STATE==1){E("GRAB_PANE").innerHTML="Put Pen Down";E("HIGHTLIGHT_BUTTON").style.visibility="hidden";document.body.style.cursor="url("+cur_curs+"), auto"}ClearSelection()}function getSelectionText(){if(window.getSelection){return window.getSelection()}else{if(document.getSelection){return document.getSelection()}else{return document.selection.createRange().text}}}function getSelectionHTML(){if(window.getSelection){return window.getSelection()}else{if(document.getSelection){return document.getSelection()}else{return document.selection.createRange().htmlText}}}function createRange(){var a;if(window.getSelection){a=window.getSelection();var b=getRangeObject(a);return b}else{if(document.selection){a=document.selection.createRange();return a}}}function getRangeObject(b){if(b.getRangeAt){return b.getRangeAt(0)}else{var a=document.createRange();a.setStart(b.anchorNode,b.anchorOffset);a.setEnd(b.focusNode,b.focusOffset);return a}}function ClearSelection(){if(document.selection){document.selection.empty()}else{if(window.getSelection()!=""){window.getSelection().collapseToStart()}}}var minimized_prev_state=0;function reduce(){minimized=2;setMinimizedStateCookie();show_acording_to_minim()}function unreduce(){minimized_prev_state=minimized;minimized=0;setMinimizedStateCookie();show_acording_to_minim();if(document.getElementById("EDUCATE").style.visibility!="hidden"){document.getElementById("EDUCATE").style.visibility="hidden"}}function setMinimizedStateCookie(){var a=new Date();FixCookieDate(a);a.setTime(a.getTime()+360000000);SetCookie("minimized",minimized,a,"/")}function m_float_right(){if(FLOAT_BOTTOM==1){m_float_bottom()}if(FLOAT_RIGHT==1){FLOAT_RIGHT=0;E("popup").style.top=prev_top+scroll_Top+"px";E("popup").style.left=prev_left+scroll_Left+"px"}else{prev_top=parseInt(E("popup").style.top)-scroll_Top;prev_left=parseInt(E("popup").style.left)-scroll_Left;FLOAT_RIGHT=1;scroll_()}}function m_float_bottom(){if(FLOAT_RIGHT==1){m_float_right()}if(FLOAT_BOTTOM==1){FLOAT_BOTTOM=0;E("popup").style.top=prev_top+scroll_Top+"px";E("popup").style.left=prev_left+scroll_Left+"px"}else{prev_top=parseInt(E("popup").style.top)-scroll_Top;prev_left=parseInt(E("popup").style.left)-scroll_Left;FLOAT_BOTTOM=1;scroll_()}}function scroll_(){var a=2;var c=null;if(minimized==0){c=E("popup")}else{if(minimized==1){c=E("minimized");a=6}else{if(minimized==2){c=E("reduce")}else{c=E("login_row")}}}var b=parseInt(c.style.top)+(getDocScrollTop()-scroll_Top);c.style.top=b+"px";if(b()[]\.,;:s@"]+(.[^<>()[]\.,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/;c=c.replace(/;/,",");to_arr=c.split(",");for(i=0;i");if(f>-1&&e>-1){b=b.substring(f+1,e)}b=trim(b);if(b!=""){if(!a.test(b)){return false}}}return true}function SendMail(){if("Your E-mail Address"==document.getElementById("from_mob").value){document.getElementById("from_mob").value=""}var b=$id("mail_from").value;if("Enter address"==b){b=""}var g=$class("r_1e");for(var a=0;a0&&arguments[0]==2){return false}alert("Enter recipients, or select e-mail address from your contacts");E("ol").style.display="none";return false}var c;if(BrowserDetect.browser!="Explorer"){var f=document.documentElement;c=""+f.innerHTML+"";arr=document.getElementsByTagName("html");c=arr[0].innerHTML}else{arr=document.getElementsByTagName("html");c=arr[0].outerHTML}if(validateEmail(b)){send_mail(c,b,"MOB")}else{alert("Please enter a valid E-Mail Address");return false}hide_popup(0)}function cursorNotBusy(){document.body.style.cursor="url("+cur_curs+"), auto"}function validData(){datas="";fname="";lastname="";error="";uemail="";if(document.frm.name_errors.value=="name_error"){if(document.frm.fname.value==""){alert("Please enter your First Name");document.frm.fname.focus();return false}if(document.frm.lastname.value==""){alert("Please enter your Last Name");document.frm.lastname.focus();return false}fname=document.frm.fname.value;lastname=document.frm.lastname.value;error=document.frm.name_errors.value;fcall=document.frm.functioncall.value}if(document.frm.name_errors.value=="email_error"){if(document.frm.emailaddress.value==""){alert("Please enter your E-Mail Address");document.frm.emailaddress.focus();return false}if(document.frm.emailaddress.value!=""){var a=/^(([^<>()[]\.,;:s@"]+(.[^<>()[]\.,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/;if(!document.frm.emailaddress.value.match(a)){alert("Please Enter Your Valid E-Mail Address");document.frm.emailaddress.focus();return false}}if(document.frm.fname.value==""){alert("Please enter your First Name");document.frm.fname.focus();return false}if(document.frm.lastname.value==""){alert("Please enter your Last Name");document.frm.lastname.focus();return false}uemail=document.frm.emailaddress.value;error=document.frm.name_errors.value;fname=document.frm.fname.value;fcall=document.frm.functioncall.value;lastname=document.frm.lastname.value;document.getElementById("sesid").value=document.frm.usess_id.value}Adduser(fname,lastname,uemail,error,fcall);CancelAdd();return false}function checkData(b){document.getElementById("systemWorking").innerHTML=b.responseText;if(b.responseText=="Ndone"){emaildatas=document.getElementById("hidden_uemail").value;document.getElementById("systemWorking").innerHTML="";document.getElementById("systemWorking").style.visibility="hidden";var a=document.getElementsByTagName("html");var c=a[0].outerHTML;if(c==null){c=document.getElementsByTagName("html")[0].innerHTML}send_mail(c,emaildatas,"HP")}if(b.responseText=="Edone"){emaildatas=document.getElementById("hidden_uemail").value;document.getElementById("systemWorking").innerHTML="";document.getElementById("systemWorking").style.visibility="hidden";var a=document.getElementsByTagName("html");var c=a[0].outerHTML;if(c==null){c=document.getElementsByTagName("html")[0].innerHTML}send_mail(c,emaildatas,"HP")}}function Adduser(j,c,h,a,f){try{var g=E("url_word").value;url=base_url+"init.php";var e="act=add_user&mails="+h+"&fname="+encodeURIComponent(j)+"&sesid="+E("sesid").value+"&lastname="+c+"&error="+a+"&url="+g;if(f==""){do_post(url,e,checkData)}else{do_post(url,e,checkFriendData)}}catch(b){}}function CancelAdd(){document.getElementById("systemWorking").innerHTML="";document.getElementById("systemWorking").style.visibility="hidden";return false}function isValid(){if(document.frm_login.provider.value==""){document.frm_login.provider.focus();alert("Please select a Provider");return false}if(document.frm_login.username.value==""){alert("Please enter a Username");document.frm_login.username.focus();return false}if(document.frm_login.password.value==""){alert("Please enter a Password");document.frm_login.password.focus();return false}if(document.frm_login.terms.checked==false){alert("Please agree to the Terms of Service");return false}minimized=0;save_state();return true}function isValidHPLogin(){if(document.frm_login.provider.value==""){document.frm_login.provider.focus();alert("Please select a Provider");return false}if(document.frm_login.username.value==""){alert("Please enter a Username");document.frm_login.username.focus();return false}if(document.frm_login.password.value==""){alert("Please enter a Password");document.frm_login.password.focus();return false}return true}function showHPLogin(){hide_mob();show_login();makeTransparent();document.frm_login.action="javascript: return false;";document.frm_login.submit.value="Login and Send";document.frm_login.cancel.value="Skip";E("UserNameRow").style.display="block";E("rooh_logos").style.display="none";E("rooh_loginboxtitle").innerHTML="Enter your Name & E-mail address";E("rooh_loginmsg").innerHTML="

Validate Your E-mail:

(to prevent spam)";if(arguments.length>0){document.frm_login.submit. hideHPLogin(){document.frm_login.submit."Login";document.frm_login.cancel.value="Cancel";E("rooh_logos").style.display="block";E("UserNameRow").style.display="none";E("rooh_loginboxtitle").innerHTML="Login";E("rooh_loginmsg").innerHTML="Use any of your accounts to login:";unlogin()}function HP_hideHPLogin(){send_mail_HP(1);hideHPLogin()}function MOB_hideHPLogin(){MOBSendMail(2);hideHPLogin()}function MOBSendMail(){makeTransparent();if((MOBSendMail.arguments.length>0)&&(typeof arguments[0]!="object")){return ValidateAndSendMail(2)}else{return ValidateAndSendMail(1)}}function ValidateAndSendMail(){if(arguments.length==0||arguments[0]!=2||(typeof arguments[0]=="object")){var a=isValidHPLogin();if(!a){return a}}makeTransparent();hideHPLogin();if((arguments.length>0)&&(typeof arguments[0]!="object")){return SendMail(arguments[0])}else{return send_mail_HP()}}function AddToFriendList(){eaddress=document.getElementById("friends_address").value;document.getElementById("hidden_uemail").value=eaddress;if(test_mail(eaddress)){usesid=document.getElementById("sesid").value;url=base_url+"init.php";var a="act=add_friendList&eaddress="+eaddress+"&usesid="+usesid;do_post(url,a,checkFriendData)}else{alert("Please enter a valid E-Mail Address")}return false}function checkFriendData(a){if(a.responseText!="ok"&&a.responseText!="Ndone"&&a.responseText!="Edone"&&a.responseText!="bad"&&a.responseText!="wrong"){document.getElementById("systemWorking").innerHTML=a.responseText}else{if(a.responseText=="Ndone"){if(document.getElementById("friends_address").value==""){document.getElementById("friends_address").value=document.getElementById("hidden_uemail").value}AddToFriendList()}else{if(a.responseText=="Edone"){if(document.getElementById("friends_address").value==""){document.getElementById("friends_address").value=document.getElementById("hidden_uemail").value}AddToFriendList()}else{if(a.responseText=="ok"){alert("Your request has been sent successfully")}else{if(a.responseText=="bad"){alert("The person at this e-mail is already in your list!")}else{if(a.responseText=="wrong"){alert("You can't add yourself")}}}}}}setTimeout("hide_system()",3000)}function hide_system(){document.getElementById("systemWorking").style.visibility="hidden";document.getElementById("systemWorking").style.display="none";document.getElementById("systemWorking").innerHTML=""}function closeEDUCATE(){if(document.getElementById("EDUCATE")){document.getElementById("EDUCATE").style.visibility="hidden";document.getElementById("EDUCATE").style.display="none"}var a=new Date();FixCookieDate(a);a.setTime(a.getTime()+60);SetCookie(show_educate_ck,"0",a,"/")}function openEDUCATE(){if(document.getElementById("EDUCATE")){document.getElementById("EDUCATE").style.visibility="visible";document.getElementById("EDUCATE").style.display=""}}function pageWidth(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null}function pageHeight(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null}function posLeft(){return typeof window.pageXOffset!="undefined"?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft?document.body.scrollLeft:0}function posTop(){return typeof window.pageYOffset!="undefined"?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0}function $(a){return document.getElementById(a)}function scrollFix(){var a=$("ol");a.style.top=posTop()+"px";a.style.left=posLeft()+"px"}function sizeFix(){var a=$("ol");a.style.height=pageHeight()+"px";a.style.width=pageWidth()+"px"}function kp(a){ky=a?a.which:event.keyCode;if(ky==88||ky==120){hm()}return false}function inf(a){tag=document.getElementsByTagName("select");for(i=tag.length-1;i>=0;i--){if(tag[i].name="provider"){continue}tag[i].style.visibility=a}tag=document.getElementsByTagName("iframe");for(i=tag.length-1;i>=0;i--){tag[i].style.visibility=a}tag=document.getElementsByTagName("object");for(i=tag.length-1;i>=0;i--){tag[i].style.visibility=a}}function sm(g,f,o){var k="hidden";var l="block";var e="px";var c=$("ol");var q=$("mbd");q.innerHTML=$(g).innerHTML;c.style.height=pageHeight()+e;c.style.width=pageWidth()+e;c.style.top=posTop()+e;c.style.left=posLeft()+e;c.style.display=l;var n=posTop()+((pageHeight()-o)/2)-12;var j=posLeft()+((pageWidth()-f)/2)-12;var a=$("mbox");a.style.top=(n<0?0:n)+e;a.style.left=(j<0?0:j)+e;a.style.width=f+e;a.style.height=o+e;a.style.display=l;inf(k);hideCheckBox();return false}function hm(){var a="visible";var b="none";$("ol").style.display=b;$("mbox").style.display=b;inf(a);document.}function initmb(){document.getElementById("subject").value=document.title;var e="absolute";var j="none";var c=document.getElementsByTagName("body")[0];var h=document.createDocumentFragment();var a=document.createElement("div");a.setAttribute("id","ol");a.style.display=j;a.style.position=e;a.style.top=0;a.style.left=0;a.style.zIndex=998;a.style.width="100%";h.appendChild(a);var g=document.createElement("div");g.setAttribute("id","mbox");g.style.display=j;g.style.position=e;g.style.zIndex=999;var b=document.createElement("span");g.appendChild(b);var f=document.createElement("div");f.setAttribute("id","mbd");b.appendChild(f);h.insertBefore(g,a.nextSibling);c.insertBefore(h,c.firstChild);window. okSelected(){if(document.getElementById("dntagain").checked==true){var b=new Date();FixCookieDate(b);var a=b.getTime();if(!isCookieSet("dontshow")){b.setTime(b.getTime()+2592000)}else{a=0;b.setTime(b.getTime()+7776000)}SetCookie("dontshow",a,b,"/")}}function makeTransparent(){hide_tooltip();var e="hidden";var a="block";var f="px";var c=$("ol");if(!c){var c=document.createElement("div");c.setAttribute("id","ol")}c.style.height=pageHeight()+f;c.style.width=pageWidth()+f;c.style.top=posTop()+f;c.style.left=posLeft()+f;c.style.display=a}function undoTransparent(){E("ol").style.display="none"}function checkTransparent(){try{if(E("ol").style.display=="none"){return false}else{return true}}catch(a){return false}}function printPage(){if(window.print){window.print()}else{alert("Sorry, your browser doesn't support this feature.")}}function mailPage(){mail_str="mailto:?subject=Check this out now please";mail_str+="&body=I think this will interest you "+location.href;location.href=mail_str}function hideCheckBox(){var a=parseInt(GetCookie("numOfHLs"));var b=parseInt(GetCookie("emSent"));if((a<7)&&(b<3)){document.getElementById("dontshowcb").style.display="none"}else{document.getElementById("dontshowcb").style.display=""}}function saveUrl(){var e=document.getElementById("newurl").value;if(e.length<5){alert("URL is too short, need 5 characters at least");CloseEdit();return}var h=document.getElementById("shortcuturl");var a=h.value;var c=a.lastIndexOf("/");var g=a.substr(c+1);var f="id="+g+"&val="+e+"&task=updatesc";var b=base_url+"site/Checksc.php?"+f;var j="";do_post(b,j,onResponseSaveUrl)}function onResponseSaveUrl(e){var a=e.responseText;var b=document.getElementById("newurl").value;if(a=="success"){CloseEdit();setShurl(b,"#ffff77",true);tt_change("
Link Changed
","images/tt_orange.gif");var c=setTimeout('tt_change("
Select Text to Highlight
", "images/tt_shadow.gif");',2000)}else{CloseEdit();alert("invalid url");return false}}function CloseEdit(){$id("Edit_wnd").style.display="none"}function findPosX(a){var b=0;if(a.offsetParent){while(1){b+=a.offsetLeft;if(!a.offsetParent){break}a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(1){a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function ShowEditWnd(){document.getElementById("edit_sc").className="send";document.getElementById("edtmob_cancel").className="send";var a=document.getElementById("shortcuturl");document.getElementById("oldurl").innerHTML=shinyurl;document.getElementById("oldurl").style.width="auto";document.getElementById("newurl").value=shortcutId;var b=document.getElementById("Edit_wnd");b.style.left=findPosX(a)-100+"px";b.style.top=findPosY(a)+30+"px";b.style.display="inline";b.style.visibility="visible";b.focus();document.getElementById("newurl").select()}function setDlgData(e){e.className="send_disabled";var c=$id("mail_from2").value;var g=$class("email_recepients1");for(var b=0;b0){elem=arguments[0];elem.className="send_disabled";try{url=base_url+"login_dlg.php";var a=document.getElementById("mail_from1").value;var b=document.getElementById("pwddlg").value;if(a&&b){document.getElementById("mail_from1").disabled=true;document.getElementById("pwddlg").disabled=true;var e=document.getElementById("provider2").value;data="username="+encodeURIComponent(a)+"&password="+encodeURIComponent(b)+"&provider="+encodeURIComponent(e);do_post(url,data,showContactList)}else{alert("Username/Password fields cannot be empty");elem.className="send";return false}}catch(c){}}else{try{url=base_url+"login_dlg.php";var a=document.frm_login.username.value;var b=document.frm_login.password.value;if(a&&b){var e=document.frm_login.provider.value;data="username="+encodeURIComponent(a)+"&password="+encodeURIComponent(b)+"&provider="+encodeURIComponent(e);do_post(url,data,loginSend)}else{alert("Username/Password fields cannot be empty");return false}}catch(c){}}}function loginSend(a){var b=a.responseText.trim();if(b=="error"){alert("Invalid login, please try again")}else{hideHPLogin();SendMail()}}function showContactList(a){var c=a.responseText.trim();document.getElementById("mail_from1").disabled=false;document.getElementById("pwddlg").disabled=false;if(c=="error"){alert("Invalid login, please try again");document.getElementById("importbtn").className="send"}else{document.getElementById("imptxt").style.display="none";document.getElementById("imptxt").style.visibility="hidden";document.getElementById("emailtxt").style.display="block";document.getElementById("emailtxt").style.visibility="visible";document.getElementById("loginblk").style.display="none";document.getElementById("importbtn").className="send";document.getElementById("sendmail_blk").style.display="block";var b=document.getElementById("populate_mails1");document.getElementById("btmtxt").style.visibility="hidden";b.innerHTML=c}}function showSkip(){document.getElementById("skiplink").style.visibility="visible"}function checkSelectedFromactb2(){var c=$("populate_mails1").getElementsByTagName("input");var b=$("mail_to").value;if(b.replace(" ","")==""){return}var a;for(a=0;a=0){c[a].checked=true;break}}}function hideBox(){okSelected();var a=document.getElementById("box");document.getElementById("skiplink").style.visibility="hidden";a.style.display="none";a.style.visibility="hidden";E("ol").style.display="none"}function showBox(f){var b=document.getElementById(f);var c="px";var e=posTop()+((pageHeight()-150)/2)-100;var a=posLeft()+((pageWidth()-250)/2)-130;b.style.top=(e<0?0:e)+c;b.style.left=(a<0?0:a)+c;b.style.display="block";b.style.visibility="visible";hideCheckBox();makeTransparent();setDisplay();setTimeout("showSkip()",3000)}function ChangeMailAll1(){var b=$id("SendMailToAll1").checked;var e=document.getElementById("populate_mails1");var a=e.getElementsByTagName("input");for(var c=0;c
Please enjoy the convenience of using your own email program.

")}function mailLink(){incrementCookie("emSent",7776000000);mail_str="mailto:?subject=Check this out now please ";mail_str+="&body="+cmnts+shinyurl+shortcutId+sigftr;location.href=mail_str;data="sesid="+E("sesid").value;data=data.trim();data+="&url="+E("url_word").value;var a=base_url+"emtrk.php";do_post(a,data,donothing)}function setComments(){E("mail_data").value=cmnts+shinyurl+shortcutId}function glob_replace(e,c,b){if(c==""||c==null){return e}else{var a=new RegExp(c,"g");var f=e.replace(a,b);return f}}function setShurl(c,b,a){var f=shortcutId;E("shortcuturl").value=shinyurl+c;if(a==true){shortcutId=c;E("shortcutId").value=c}var e="Quickly see the page I have highlighted for you at";if(E("mail_data")){if(E("mail_data").value.trim()==cmnts+shinyurl+f||E("mail_data").value.trim()==e){setComments()}else{E("mail_data").value=glob_replace(E("mail_data").value,f,c)}}if(b!=""){E("shortcuturl").style.backgroundColor=b}}function do_logout(){return}function mouseX(a){if(!a){a=window.event}if(a.pageX){return a.pageX}else{if(a.clientX){return a.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)}else{return 0}}}function mouseY(a){if(!a){a=window.event}if(a.pageY){return a.pageY}else{if(a.clientY){return a.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{return 0}}}function follow(a){if(a){screenX=a.screenX;screenY=a.screenY;clientX=a.clientX;clientY=a.clientY}else{a=window.event;screenX=a.screenX;screenY=a.screenY;clientX=a.clientX;clientY=a.clientY}if(document.getElementById){var b=document.getElementById(divName).style;b.left=(parseInt(mouseX(a))+tool_offX)+"px";b.top=(parseInt(mouseY(a))+tool_offY)+"px"}}function tt_change(b,a){var c=document.getElementById("rooh_tooltip");c.innerHTML=b;c.style.backgroundImage="URL('"+domain_glob+a+"')"}function set_tt(f){var a="";var c=document.getElementById("rooh_tooltip");switch(f){case 1:fgColor="#ffffff";bgColor="";txt="Saving Highlight";bgImg="tt_shadow.gif";break;case 5:fgColor="#000000";bgColor="";txt="Deleted";bgImg="tt_orange.gif";a="";break;default:break}var b="
"+a+txt+"
";c.innerHTML=b;c.style.backgroundImage="URL('"+domain_glob+bgImg+"')"}function submit_form(a){var b=document.getElementById(a).value;if(b=="Enter URL here:"||b=="Enter URL:"||b==""){alert("Please enter a website address/URL to highlight");return false}location.href=domain_glob+b;return false}function func(){var e=$("populate_mails").getElementsByTagName("input");var c=$("mail_from").value;var a,b;for(a=0;a"+thetext+"")}if(iens6&&!document.all){theobj.style.top=window.pageYOffset+winPositionFromTop+"px";theobj.innerHTML="";theobj.innerHTML="
"+thetext+"
"}}if(ns4){thename="nsviewer";theobj=eval("document."+thename);winPositionFromTop=window.innerHeight;winWidth=window.innerWidth;winHeight=100;if(theswitch=="override"){winWidth=inwidth;winHeight=inheight}theobj.moveTo(0,eval(window.pageYOffset+winPositionFromTop));theobj.width=winWidth;theobj.clip.width=winWidth;theobj.document.write("
"+thetext+"
");theobj.document.close()}viewIt()}function viewIt(){if(startH<=winHeight){if(iens6){theobj.style.visibility="visible";if(iens6&&document.all){theobj.style.top=(ietruebody().scrollTop+winPositionFromTop)-startH+"px"}if(iens6&&!document.all){theobj.style.top=(window.pageYOffset+winPositionFromTop)-startH+"px"}theobj.style.height=startH+"px";startH+=2;openTimer=setTimeout("viewIt()",10)}if(ns4){theobj.visibility="visible";theobj.moveTo(0,(eval(window.pageYOffset+winPositionFromTop)-startH));theobj.height=startH;theobj.clip.height=(startH);startH+=2;openTimer=setTimeout("viewIt()",10)}}else{clearTimeout(openTimer)}}function stopIt(){if(iens6){theobj.innerHTML="";theobj.style.visibility="hidden";startH=2}if(ns4){theobj.document.write("");theobj.document.close();theobj.visibility="hidden";theobj.width=0;theobj.height=0;theobj.clip.width=0;theobj.clip.height=0;startH=2}}function hideAlert(){var a=document.getElementById("alertBox");a.style.visibility="hidden";a.style.display="none"}function showTab(a){for(i=0;i<4;i++){document.getElementById("tab"+parseInt(i)).style.display="none";document.getElementById("tab"+parseInt(i)).style.visibility="hidden"}document.getElementById("tab"+a).style.display="inline";document.getElementById("tab"+a).style.visibility="visible"}function getTags(){var a=base_url+"get_tags.php";var b="url="+restore_url;do_post(a,b,showTags)}function showTags(transport){returnStr="";var responseText=transport.responseText.trim();eval(responseText);if(applicableTags=="FAILURE"){showAlert(15000,"Tags not saved.

Please make sure that you are the owner of this highlight, and you are logged in.")}else{if(""!=applicableTags){returnStr=getTags4Selection(applicableTags);if(document.getElementById("applicableTags")!=null){document.getElementById("applicableTags").innerHTML=returnStr}}}if(appliedTags!=""){returnStr=getSelectedTags(appliedTags);document.getElementById("taggedAs").innerHTML=returnStr}}function getSelectedTags(a){var b="";trim(a);var c=a.split(" ");pgTaggedAs=pgTaggedAs.concat(c);pgTaggedAs.sort();var e=pgTaggedAs.length;if(e>0){b="
    ";for(i=0;i"+getSelectedTag(pgTaggedAs[i])+" "}b+="
"}return b}function getTags4Selection(a){var b="";trim(a);var c=a.split(" ");var e=c.length;if(e>0){b+=getTag4Selection(c[0]);for(i=1;iread-later, or news")}else{var b=base_url+"save_tags.php";var e="tags="+a+"&page_id="+E("ID_SAVED_PAGE").value;do_post(b,e,tagsAdded);var c=new Date();FixCookieDate(c);c.setTime(c.getTime()+172800000);SetCookie("lastTag",a,c,"/")}}function tagsAdded(b){var a=b.responseText.trim();if(a=="FAILURE"){showAlert(15000,"Tags not saved.

Please make sure that you are the owner of this highlight, and you are logged in.")}else{taggedAs2=getSelectedTags(a);document.getElementById("taggedAs").innerHTML=taggedAs2;document.getElementById("selectedTags").value=""}}function getSelectedTag(a){return' "+a+" "}function getTag4Selection(a){return' "+a+" "}function add2Selection(a){if(document.getElementById("selectedTags").value=="Make your own"){document.getElementById("selectedTags").value=a+" "}else{document.getElementById("selectedTags").value+=a+" "}}function getWdgtSnippet(b){var a="";return a}function makePvtHL(c,a){data="hlid="+c+"&pvt="+a+"&page_id="+ID_SAVED_PAGE;url=base_url+"makePvtHL.php";do_post(url,data,makePvtHandler);var b=new Date();FixCookieDate(b);b.setTime(b.getTime()+7200000);SetCookie("keepPvt",a,b,"/")}function makePvtHandler(a){var b=a.responseText;if(b=="pvtFailure"){showAlert(10000,"
NOT UPDATED: Most likely because it was already set to PRIVATE.
")}else{if(b=="50"){changedTo="PRIVATE"}else{changedTo="PUBLIC";E("pvtHL").checked=false}showAlert(5000,"
Success: The highlight has been marked as "+changedTo+"
")}}function getPvtHL(a){data="hlid="+a+"&page_id="+ID_SAVED_PAGE+"&get=true";url=base_url+"makePvtHL.php";do_post(url,data,getPvtHandler)}function getPvtHandler(a){var b=a.responseText;if(b=="50"){E("pvtHL").checked=true}else{if(E("pvtHL")){E("pvtHL").checked=false}}}function saveComments(f,b){var a=document.getElementById("usercomments").value;if(""==a){showAlert(15000,"No notes added.");return}if(f<1){showAlert(15000,"You may only comment on your highlights.");return}var c=base_url+"save_comments.php";var e="comments="+a+"&hlid="+f+"&pvt="+b+"&page_id="+E("ID_SAVED_PAGE").value;do_post(c,e,commentsSaved)}function commentsSaved(b){var a=b.responseText.trim();if(a=="FAILURE"){showAlert(15000,"Comments not saved.

Please make sure that you are the owner of this highlight, and you are logged in.")}else{showAlert(15000,"Comments saved.

")}}function trackSharing(a){data="sesid="+E("sesid").value;data=data.trim();data+="&url="+E("url_word").value;data+="&medium="+a;var b=base_url+"emtrk.php";do_post(b,data)}function tweetIt(){var b="";var a=removeHTMLTags(trim(E("lastHLtext").value));if(a.length>100){a=trim(a.substring(0,99))+".."}else{if(a.length<50){b=" (Its FREE, No Signup reqd)"}}if(shortcutId.length>1){promo=": Hilights "+shinyurl+shortcutId}else{promo=" Free Hilights by "+shinyurl}a+=promo+b;window.location.href="http://twitter.com/home?status="+encodeURIComponent(a);trackSharing("Twitter")}function fbIt(){var b="";var a=trim(E("lastHLtext").value);if(a.length>100){a=trim(a.substring(0,99))+".."}else{if(a.length<50){b=" (Its FREE, No Signup reqd)"}}if(shortcutId.length>1){promo=": See MY Hilights "+shinyurl+shortcutId}else{promo=" Free Hilights by "+shinyurl}a+=promo+b;window.location.href="http://www.facebook.com/sharer.php?u="+shinyurl+shortcutId+"&t="+encodeURIComponent(document.title);trackSharing("Facebook")}function myspaceIt(){var c="";var b=trim(E("lastHLtext").value);if(b.length>100){b=trim(b.substring(0,99))+".."}else{if(b.length<50){c=" (Its FREE, No Signup reqd)"}}tweet2=''+b+"";b=tweet2;if(shortcutId.length>1){promo=": See MY Hilights "+shinyurl+shortcutId}else{promo=" Free Hilights by "+shinyurl}b+=promo+c;var a="http://www.myspace.com/index.cfm?fuseaction=postto";a+="&t="+encodeURIComponent(document.title);a+="&c="+encodeURIComponent(b);a+="&u="+encodeURIComponent(shinyurl+shortcutId);window.location.href=a;trackSharing("Myspace")}function linkedinIt(){var c="";var b=trim(E("lastHLtext").value);if(b.length>200){b=trim(b.substring(0,99))+".."}else{if(b.length<50){c=" (Its FREE, No Signup reqd)"}}if(shortcutId.length>1){promo="..see Highlighted page at "+shinyurl+shortcutId}else{promo=" Free Highlights by "+shinyurl}b+=promo+c;var e=trim(document.title);if(e==""){e=shinyurl+shortcutId}var a="http://www.linkedin.com/shareArticle?mini=true";a+="&url="+encodeURIComponent(shinyurl+shortcutId);a+="&title="+encodeURIComponent(e);a+="&summary="+encodeURIComponent(b);a+="&source="+encodeURIComponent("RoohIt: Your Instant Highlighter - CLOSE(x) the LinkedIn bar after clicking");window.location.href=a;trackSharing("LinkedIn")}function removeHTMLTags(b){b=b.replace(/&(lt|gt);/g,function(c,e){return(e=="lt")?"<":">"});var a=b.replace(/]+(>|$)/g,"");return a};function hideAlert() {var abox=document.getElementById('alertBox');abox.style.visibility='hidden';abox.style.display='none';} function showAlertNew(duration,msg,showBtn) {var availHeight;var availWidth;var yOffset=0;if(self.pageYOffset) {yOffset=self.pageYOffset;} else if(document.documentElement&&document.documentElement.scrollTop) {yOffset=document.documentElement.scrollTop;} else if(document.body) {yOffset=document.body.scrollTop;} if(typeof(window.innerWidth)=='number') {availHeight=window.innerHeight;availWidth=window.innerWidth;} else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)) {availHeight=document.documentElement.clientHeight;availWidth=document.documentElement.clientWidth;} else if(document.body&&(document.body.clientWidth||document.body.clientHeight)) {availHeight=document.body.clientHeight;availWidth=document.body.clientWidth;} var indicator=document.getElementById('alertBox');var indicatorWidth=50;var indicator=document.getElementById('alertBox');var left=(availWidth/2)-(indicatorWidth/2);indicator.style.display="block";indicator.style.visibility='visible';var indicatorHeight=indicator.offsetHeight;var top1=(yOffset+(availHeight/2)-(indicatorHeight/2)-80);indicator.style.position="absolute";indicator.style.top=top1+"px";indicator.style.left=left+"px";btnHtmlFF= '
';btnHtmlIE='
';btnHtml=btnHtmlIE;if(showBtn) document.getElementById('alertBox').innerHTML=msg+btnHtml;else document.getElementById('alertBox').innerHTML=msg;var asdf=setTimeout("hideAlert();",duration);} function showAlert2(duration,msg,title,img) {html4title='

'+title+'

';msgWtitle=html4title+msg;html4image='
';msg=html4image+msgWtitle;msg+='
';showAlert(duration,msg);} function showAlert(duration,msg) {showAlertNew(duration,msg,true);} function sendBugReport(browserVer) {var subj=' Bug Report';var body='While using '+browserVer+', I ran into a problem on the page at '+location.href+' %0A%0ADetails of the problem are: %0A%0A';var to='support@roohit.com';location.href='mailto:'+to+'?subject='+subj+'&body='+body;} function mailpage() {mail_str="mailto:?subject=Check this out ";mail_str+="&body=I think this will interest you "+location.href;location.href=mail_str;} function printPage() {if(window.print) window.print() else alert("Sorry, your browser doesn't support this feature.");} function getCookie(c_name) {if(document.cookie.length>0) {c_start=document.cookie.indexOf(c_name+"=") if(c_start!=-1) {c_start=c_start+c_name.length+1 c_end=document.cookie.indexOf(";",c_start) if(c_end==-1)c_end=document.cookie.length return unescape(document.cookie.substring(c_start,c_end))}} return ""} function setCookie(c_name,value,expiredays) {var exdate=new Date() exdate.setDate(exdate.getDate()+expiredays) document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString())} var ddtabmenu={disabletablinks:true,snap2original:[false,300],currentpageurl:window.location.href.replace("http://"+window.location.hostname,"").replace(/^//,""),definemenu:function(tabid,dselected){this[tabid+"-menuitems"]=null this[tabid+"-dselected"]=-1 this.addEvent(window,function(){ddtabmenu.init(tabid,dselected)},"load")},showsubmenu:function(tabid,targetitem){var menuitems=this[tabid+"-menuitems"] this.clearrevert2default(tabid) for(i=0;i
 Embed: Personalize Widget
Direct Link to Highlights: Optional Custom Name