function new_window(url) {

link = window.open(url,"Link","width=336,height=380,left=300,top=200,scrollbars=yes,resizable=yes");

}
//END Script-->

function newPopup()
{
  	var time = new Date()
  	var min = time.getMinutes()
  	var sec = time.getSeconds()
      str = min + sec;
  	  //str - This variable represents the name of the popup window
      //str - This variable changes every second and is unique, so evry popup will spawn a new window
	return str;
}
function new_window1(url) {
newPopup()
link = window.open(url,str,"width=600,height=300,left=300,top=200,resizable,scrollbars,status,toolbar");
}

function new_window2(url) {
newPopup()
link = window.open(url,str,"width=800,height=600,left=300,top=200,resizable,scrollbars,status,toolbar");
}

function special_offer() {
link=window.open("popup_specialinternetoffer.htm","specialInternetOffer","width=240,height=340,left=100,top=60,scrollbars=yes,resizable=yes");
}
function survey() {
link=window.open("http://www.un.org/Pubs/chronicle/survey.asp","survey","width=450,height=520,left=600,top=60,scrollbars=yes,resizable=yes");
}
//Date 
function getDisplayMonth(iMonth) {
    var monthArray = new Array("January","Febuary","March","April","May","June","July","August","September","October","November","December");
    return monthArray[iMonth];
}
function getDisplayDate(passedDate) {
    theDate = new Date(passedDate);
    iDay = theDate.getDate();
    iMonth = theDate.getMonth();
    iYear = theDate.getFullYear();
    sDisplayDate = iDay +  " " + getDisplayMonth(iMonth) +  "  " + iYear;
    return sDisplayDate;
}

function homepage(){
    oHomePage.setHomePage('http://www.un.org/chronicle/');  
	//event.returnValue = false;
}

function SelText()
{
	if (document.homePage.email.value == "Type your E-mail")
	{
	document.homePage.email.value = "";
	}
}

function emailThis(){
document.write("<a class=Links href=\"mailto:Type your friend\'s email address here?subject=I am sending you a very interesting article. (UN Chronicle Online Edition)&Body=You can find the article here: " + location.href + "\"" + "><b>E-mail this article to a friend</b></a><br>")
}

function envoyerParEmail(){
document.write("<a class=Links href=\"mailto:Ecrivez ici le courrier électronique du destinataire?subject=Je vous envoie un article interessant. (Chronique ONU Edition en Ligne)&Body=Vous pouvez trouver l'article ici: " + location.href + "\"" + "><b>Envoyer Par Email</b></a><br>")
}
