﻿// this function is used to open window
function openPopupWindow(path, wd, hgt, return_win_ref, menubar, resizable, scrollbars, titlebar, toolbar, alwaysRaised) {	
	
	PositionX = ((screen.width)/2) - wd/2;
	PositionY = 100;

	
	for (var i=arguments.length; i<openPopupWindow.length; i++) {
		if (typeof(arguments[i]) == "undefined")	{
			arguments[i] = "no";	
		}	 
	}	
	
	var win_parameter = 'width=' + arguments[1] + ', height=' + arguments[2] + ', menubar=' + arguments[4] + ', resizable=' + arguments[5] + ', scrollbars=' + arguments[6] + ', titlebar=' + arguments[7] + ', toolbar=' + arguments[8] + ', alwaysRaised=' + arguments[9] + ',left='+PositionX+ ',top='+PositionY;                           
	var win_obj = window.open(path, name, win_parameter);	
	if (return_win_ref)	{
		
	}
}
