/*
 General Purpose Mapping Tool v0.4
 Copyright (C) 2007  Simon Neira Dueñas <sneira@mundo-r.com>

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 USA.
 */
 
 
 /*
  * Pop-up a new window with an URL showing a small map
  */
function newPopupmap(url)
 {  
  popmapwin = window.open(url, 
  						   "popWin", 
  						   "left=300, top=200, Width=480, Height=423, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  popmapwin.focus(); //Center the window after opening it.						   
   						    						            
 }

 
/*
 * Pop-up a new window with an URL showing point information 540
 */
function newPopupinfo(url)
 {  
  popinfowin = window.open(url, 
  						   "popWin", 
  						   "left=300, top=200, Width=430, Height=500, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  popinfowin.focus(); //Center the window after opening it.						   
   						    						            
 } 
 
/*
 * Pop-up a new window with an URL allowing editing point information
 */
function newPopupedit(url)
 {  
  popeditwin = window.open(url, 
  						   "popWinEdit", 
  						   "left=300, top=200, Width=460, Height=435, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  popeditwin.focus(); //Center the window after opening it.						   
   						    						            
 } 
 
 /*
  * Pop-up a new window with an URL showing a small map to be edited
  */
function newPopupeditmap(url)
 {  
  popeditmapwin = window.open(url, 
  						   "popWin2", 
  						   "left=350, top=250, Width=480, Height=460, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  popeditmapwin.focus(); //Center the window after opening it.						   
   						    						            
 }
 
 
 /*
 * Pop-up a new window with an URL showing user information
 */
function newPopupuserinfo(url)
 {  
  popuserinfowin = window.open(url, 
  						   "popWinuser", 
  						   "left=300, top=200, Width=400, Height=285, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  popuserinfowin.focus(); //Center the window after opening it.						   
   						    						            
 } 
 
 
/*
 * Pop-up a new window with an URL for polling the user
 */
function newPopuppoll(url)
 {  
  poppollwin = window.open(url, 
  						   "popWinPoll", 
  						   "left=300, top=200, Width=440, Height=450, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  poppollwin.focus(); //Center the window after opening it.						   
   						    						            
 }  
 
 
 /*
 * Pop-up a new window with an URL allowing editing news arthicles
 */
function newPopupeditarthicle(url)
 {  
  poparteditwin = window.open(url, 
  						   "popWinArtEdit", 
  						   "left=300, top=200, Width=430, Height=240, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  poparteditwin.focus(); //Center the window after opening it.						   
   						    						            
 } 
 
 
  /*
 * Pop-up a new window with an URL allowing editing news arthicles
 */
function newPopupnews(url)
 {  
  popnewswin = window.open(url, 
  						   "popWinNews", 
  						   "left=300, top=200, Width=440, Height=600, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, copyhistory=no");  						   
  popnewswin.focus(); //Center the window after opening it.						   
   						    						            
 } 
 
 
 /*
 * Pop-up a new window browser with an URL 
 */
function newPopupbrowser(url)
 {  
  popbrowwin = window.open(url, 
  						   "popWinBrowser", 
  						   "left=300, top=200, Width=800, Height=600, titlebar=yes, menubar=yes, toolbar=yes, location=yes, directories=yes, status=yes, scrollbars=yes, resizable=yes, copyhistory=no");  						   
  popbrowwin.focus(); //Center the window after opening it.						   
   						    						            
 } 
 
 
/*
 * Pop-up a new window with showing help information
 */
function newPopuphelp(url)
 {  
  pophelp = window.open(url, 
  						   "popHelp", 
  						   "left=300, top=200, Width=300, Height=280, titlebar=no, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no");  						   
  pophelp.focus(); //Center the window after opening it.						   
   						    						            
 } 
 
 
 /*
 * Pop up pic javascript funcion
 */
function popUpPic(picUrl, title) {

popup = open("", "displayWindow","menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, width=845, height=660"); 

 popup.document.open();
 popup.document.write('<html>');
 popup.document.write('<head><title>'+title+'</title></head>');
 popup.document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="fotodenunciagp.css">');
 popup.document.write('<body>');
 popup.document.write('<body class="fdgpbody">');
 popup.document.write('<center>');
 popup.document.write('<table width="800" height="600" border="0"><tr><td>');
 popup.document.write('<p><center><img class="galleryredux" src="'+picUrl+'"></center></p>');		
 popup.document.write('</td></tr></table>');
 popup.document.write('<font class="gptextgreen" style="font-size: 13px;"><b>'+title+'</b></font>');
 popup.document.write('</center>');
 popup.document.write("</body>");
 popup.document.write("</html>");		
popup.document.close();

}

/*
 * Update parent window and close window
 */

 function edited()
 {
  opener.location.reload();
  window.close();
 } 



 

