/*
Purpose : To open a window of full size.
Parameters :
	1.	String Url to be open
*/
function fullWin(url)
{
	winPro = 'fullscreen=yes,toolbars=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
	var popwin = window.open(url,'fullwin',winPro);
	popwin.focus();
}

/*
Purpose : To open a window of square in size.
Parameters :
	1.	String Url to be open
	2.	int size of the window which will be same for height and width
*/
function squareWin(url,squaresize)
{

	var hleft=(screen.width/2)-(squaresize/2);
	var htop=(screen.height/2)-(squaresize/2);

	width = height = squaresize;
	winPro = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes,width=' + width + ',height=' + height + ',left=' + hleft + ',top=' + htop + ',resizeable=no';
	var popwin = window.open(url,'squarewin',winPro);
	popwin.focus();
}

/*
Purpose : To open a window of flexible size.
Parameters :
	1.	String Url to be open
	2.	int width of the window
	3.	int height of the window
*/
function flexWin(url,width,height)
{
	var hleft=(screen.width/2)-(width/2);
	var htop=(screen.height/2)-(height/2)-50;
	winPro = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes,width=' + width + ',height=' + height + ',left=' + hleft + ',top=' + htop + ',resizeable=no';
	var popwin = window.open(url,'winn1',winPro);
	popwin.focus();
}

function flexWin1(url,width,height)
{
	var hleft=(screen.width/2)-(width/2);
	var htop=(screen.height/2)-(height/2)-50;
	var windowname=parseInt(100*Math.random());
	windowname=windowname.toString();
	winPro = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes,width=' + width + ',height=' + height + ',left=' + hleft + ',top=' + htop + ',resizeable=no';
	var popwin = window.open(url,''+windowname+'',winPro);
	popwin.focus();
}