////////////Start Content - Writer  //////////////

function getContentWriter(divId,content,q)
{
var divImg = document.getElementById(divId);
divImg.style.display = "block";
//var url	  = 'http://localhost/hindivishwa/include/writerProcess.php';
var url	  = 'http://www.hindivishwa.org/include/writerProcess.php'; 
//var url	  = 'http://localhost/live/include/writerProcess.php'; 
var pars  = '?content='+content+'&divId='+divId+'&q='+q;     
var target =    divId; /*'alfa_1' ;*/
// alert(url+pars+divId);
   var  MyAjax = new Ajax.Updater(target,

           url, {  

           method: 'post',
			
           parameters: pars ,
		   
			onSuccess : function(result, request) {
		            // alert('result='+result); // I get an object
        		   // alert('result text='+result.responseText); // I get the message 'undefined'
          }
// onFailure :  show1 // alert(url+''+ pars);
// onSuccess:onCreate:
          } );   
 }
////////////////////////////	End Content - Writer		////////////////
////////////////////////////	End Content - Writer		////////////////
function popupWindow(mypage, myname, w, h, scroll) {
	
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	//winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	winprops = 'status=no,toolbar=no,top='+wint+',left='+winl+',scrollbars='+scroll+',titlebar=no,menubar=no,resizable=yes,height='+h+',width='+w+',directories=no,location=no';
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}