
function popupVaj(url,name) {
	// parameters:	url = URL of the popup window
	var w = 1024//screen.width; //fixed width
	var h = 768//screen.height; //fixed height
	
	leftPosition = (screen.width/2)-512   //0;		// centering horizontal position to middle of screen
	topPosition = (screen.height/2)-384    //0;  	// centering vertical position to middle of screen
	if (h<645) {
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no'; //set popup window properties
	} else {
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no'; //set popup window properties
	}
	if (name==null) name='remote';
	var popup = window.open(url,name,windowprops); // open popup window with properties
	//popup.moveTo(0,0)
	popup.resizeTo(1024,768);
	//popup.focus(); // focus on window
}


