﻿function openpopup(filename,windowName,height,width){
		var strOptions;
		var left=0,top=0;
		if (width > 0 && height > 0){
			left = ((screen.width - width) / 2) ;
			top =  ((screen.height - height) / 2);
		}
		else{
			left=0;top=0;
		}
		strOptions="height=" + height +",width=" + width + ",left=" + left + ",top=" + top + ",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes";
		window.open (filename,windowName,strOptions);
	}	

