/** FRENCH **/

function popSponsor(URL) {
window.open(URL, 'newWin', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=580,left = 162,top = 100')
}

function popPastQuizzes(URL) {
window.open(URL, 'newWin', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=580,left = 162,top = 100')
}

/** submit form to a pop-up window**/
function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}

/** MEDIA SECTION**/
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=790,height=590,left = 100,top = 100');");
}

function popUpScoreboard(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=750,height=580,left = 162,top = 100');");
}


function popContacts() {		
window.open("contacts.asp","ContactsWindow","width=760,height=540,scrollbars=0");
}	

/** WINNERS SECTION**/
function popWinnersScoreboard(URL) {
window.open(URL, 'newWin', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=785,height=580,left = 162,top = 100')
}

/** Questions anterieures SECTION **/
function popSpectators(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=740,height=580,left = 10,top = 10');");
}

/** PUBLIC CHALLENGE**/
function popScoreboardPublic() {		
window.open("/geochallenge/fr/defi_public/scoreboard.asp","ContactsWindow","width=830,height=540,scrollbars=1");
}	


function popScoreboardPublic2007() {		
window.open("/geochallenge/fr/defi_public/2007/scoreboard.asp","ContactsWindow","width=830,height=540,scrollbars=1");
}	

function popScoreboardPublic2008() {		
window.open("/geochallenge/fr/defi_public/2008/scoreboard.asp","ContactsWindow","width=830,height=540,scrollbars=1");
}	

function popScoreboardPublic2009() {		
window.open("/geochallenge/fr/defi_public/2009/scoreboard.asp","ContactsWindow","width=830,height=540,scrollbars=1");
}	

function popPublicChallengeWithRules(){
window.open('/geochallenge/online_challenge/2007/default.asp','QuizWin','width=740,height=600,scrollbars=yes,resizeable=yes');
}		

function popPublicChallengeWithRules2007(){
window.open('/geochallenge/online_challenge/2007/default.asp','QuizWin','width=740,height=600,scrollbars=yes,resizeable=yes');
}		

function popPublicChallengeWithRules2008(){
window.open('/geochallenge/online_challenge/2008/default.asp','QuizWin','width=740,height=600,scrollbars=yes,resizeable=yes');
}		

function popPublicChallengeWithRules2009(){
window.open('/geochallenge/fr/defi_public/2009/default.asp','QuizWin','width=740,height=600,scrollbars=yes,resizeable=yes');
}		


function popPublicChallenge(){
window.open('/geochallenge/online_challenge/2007/question.asp','QuizWin','width=740,height=600,scrollbars=yes,resizeable=yes');
}		
 
function popPublicChallenge2007(){
window.open('/geochallenge/online_challenge/question.asp','QuizWin','width=780,height=600,scrollbars=yes,resizeable=yes');
}		
function popPublicChallenge2008(){
window.open('/geochallenge/online_challenge/2008/question.asp','QuizWin','width=780,height=600,scrollbars=yes,resizeable=yes');
}		
function popPublicChallenge2009(){
window.open('/geochallenge/online_challenge/2009/question.asp','QuizWin','width=780,height=600,scrollbars=yes,resizeable=yes');
}		
 
 
/** ONLINE FINALS**/
function popUpFinals(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=750,height=575,left = 100,top = 0');");
}



