function tell_a_friend() { popUp('tell_a_friend'); } function pop_logout() { popUp('pmsg_logout'); } function add_to_my_list() { popUp('add_to_my_list'); } function close_popups() { document.getElementById('tell_a_friend').className='popup_off'; document.getElementById('add_to_my_list').className='popup_off'; } function send_to_friend_form() { makeRequest('_tell_a_friend.inc.php?your_name=' + escape(document.tell.your_name.value) + '&your_email=' + escape(document.tell.your_email.value) + '&friend_name=' + escape(document.tell.friend_name.value) + '&friend_email=' + escape(document.tell.friend_email.value) + '&text=' + escape(document.tell.text.value) + '&send=on','tell_a_friend'); document.getElementById('send_to_fr').value='Sending...'; } function add_to_my_list_form() { makeRequest('_add_to_my_list.inc.php?add=on&text=' + escape(document.addto.text.value),'add_to_my_list'); document.getElementById('send_to_li').value='Sending...'; } //@Author: Zulay Carrasco //@Date: 13/05/2009 //@Description: This function was made to replace the content of print page of mylearnigresearch function ReplaceMyLearnigText(fullName, text) { var textToReplace1 = "Here is the list of pages you "; var newText1 = "Here is the list of pages " + fullName + " has "; var textToReplace2 = "Here is the amount of time you've "; var newText2 = "Here is the amount of time " + fullName + " has "; var textToReplace3 = "
To print a copy of this page for your CPD records just click ‘Print this page’ at the top right of the screen
"; text = text.replace(textToReplace1 , newText1); text = text.replace(textToReplace2 , newText2); text = text.replace(textToReplace3, ""); //remove from the printing text return text; } function print_this_page() { var text=document.getElementById('page_print').innerHTML; var fullName; if (document.getElementById('fullName') != null) { fullName = document.getElementById('fullName').value; //it is only for myLearningResearch page text = ReplaceMyLearnigText(fullName, text); } document.getElementById('content_text').value=text+'


This website is owned by Bestsoft Consulting
and is available only for demonstration purposes

'; document.fprint.submit(); } function bookmark(url,title) { var aN=navigator.appName; var aV=navigator.appVersion; var pV=Number(parseInt(aV)); //alert(pV); var istrue=0; if(pV >=4 ) { istrue=1; } if( aN == 'Microsoft Internet Explorer' && istrue ) { //alert(window.external); window.external.addfavorite(url,title); } else if (aN == 'Netscape') { window.sidebar.addPanel(title,url,""); } else { alert('Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark'); } } function rate_this(val) { makeRequest('_rating.inc.php?star='+val+'&next='+Math.random(),'art_rating'); } function display_div(divid) { if(document.getElementById('display_div_'+divid).className=='display_div_on') { document.getElementById('display_div_'+divid).className='display_div_off'; } else { document.getElementById('display_div_'+divid).className='display_div_on'; } }