function ActivityNewWindow(url,w,h,acttype)
{
	width = (w != null) ? w : "300";
	height = (h  != null) ? h : "350";
	type = (acttype != null) ? acttype : "jes";

	// Right now, these are both the same but if you get new types you want to account for you would
	// add else if(){...} statements.
	if(acttype == "jes"){
		var titleStr = acttype;
		var str = 'toolbar=no,location=no,resizable=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=yes,copyhistory=no,width=' + width+',height=' + height;
		}
	else if (acttype == "jes1"){
		var titleStr = acttype;
		var str = 'toolbar=no,location=no,resizable=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=yes,copyhistory=no,width=' + width+',height=' + height;	
	}
	else{
		var titleStr = "Preview";
		var str = 'toolbar=no,location=no,resizable=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=yes,copyhistory=no,width=' + width+',height=' + height;
		}

	newWindow = window.open(url,titleStr,str);
}

function OpenNamedWindow(name,url,winwidth,winheight)
{
	var newWindow = window.open(url,name,'toolbar=no,scrollbars=yes,location=no,resizable=no,directories=no,status=no,menubar=no,copyhistory=no,width='+winwidth+',height='+winheight)
}

function OpenNewWindow(url,winwidth,winheight)
{
	newWindow = window.open(url,'Preview','toolbar=no,location=no,resizable=no,directories=no,status=no,menubar=no,copyhistory=no,width='+winwidth+',height='+winheight)
}

function PrivacyNewWindow(url,winwidth,winheight)
{
	newWindow = window.open(url,'Preview','toolbar=no,location=no,resizable=no,directories=no,status=no,menubar=no,scrollbars,copyhistory=no,width='+winwidth+',height='+winheight)
}
