function init_popups() { 
   if (!document.getElementsByTagName) { 

      return false; 

   } 

   // create an array of objects of each link in the document 
   var popuplinks = document.getElementsByTagName("a"); 

   // loop through each of these links (anchor tags)     
   for (var i=0; i < popuplinks.length; i++) {    
		if (popuplinks[i].className == "popup") { 

		   // add an onclick event on the fly to open a new browser window 
		   popuplinks[i].onclick = function() { 
		 		window.open(this.getAttribute("href"), null, "height=550,width=550,status=np,toolbar=no,menubar=no,location=no,resizable=yes,scrollbar=yes"); 
		   		return false; 

		   } 

		}	

		

   } 

} 



function sendArticle(id) {

	var page = 'send_article.php?article_id='+id;

   	window.open(page,'popup','width=450, height=325') ;

}



function sendAd() {

	var page = 'sendAd.php';

	document.form.action = page;

	document.form.target = "_blank";

	document.form.submit();

	//init_popups();

	//document.getElementById('classified_ad_text').value;

   	//window.open(page,'popup','width=425, height=285') ;

}

function showPaymentOptions() {
	var page = 'http://www.nycvoices.org/payment_options_popup.php';
   	window.open(page,'popup','width=450, height=325') ;
}