function openWinCenter( windowURL, windowName, width, height,left,top,otherFeatures) { 
    if(left == 0)        
        left  = (screen.width-width)/2;
    if(top == 0)        
        top = (screen.height-height)/2;
    settings  ='height='+height+', width='+width+', top='+top+', left='+left+',';
    settings +=otherFeatures;
    windowName	=	'';
	return open_popup( windowURL, windowName, settings ) ; 
}

function openWin( windowURL, windowName, windowFeatures ) { 
	    
		windowName	=	'';
		return open_popup( windowURL, windowName, windowFeatures ) ; 
	}

// opens popup link even if it is open and behind the main window
/* function open_popup(page, windowName, windowFeatures) {
	windowName	=	'';
	//commented by kedar on 18 dec 06
	
		window_handle = open_popup(page, windowName, 'width=1,height=1,toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,titlebar=0,visible=0,left=1500,top=1000');
		if(this != window_handle){
			window_handle.close();
		}
	
    window_handle = window.open(page, windowName, windowFeatures);
} */

/*
On clicking on "Address" a popup is opened irrespective of whether it has been opened earlier! blank.html is required for the function to be operative.
<a href="JavaScript:open_popup('address.jsp','Address', 'width=400,height=500,toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,titlebar=0')" class="butgreen">Address</a><br>
*/
