
  var winl = (screen.width - 785) / 2;
	var wint = (screen.height - 540) / 2;
	winprops = 'resizable,scrollbars=1,dependent, menubar=0,width=900px,height=540px,top='+wint+',left='+winl
	winprops2 = 'resizable:yes;scroll=yes;dialogWidth=900px;dialogHeight:=540px;dialogTop='+wint+';dialogLeft='+winl

	function ViewAnswer(mesid, site)
	{
		var lngResponseType = 0;
		var TOPV = "YES";	//add to count for FAQs report
		var CCT = "YES";	//do not show internal note
		var strUrl = "http://www.aqtual.com.au/FA/hybrid/show.asp?Project=3838168&Site=" + site +
								 "&MesId=" + mesid + "&CCT=" + CCT + "&TOP=" + TOPV ;

		var newWindow =  'ViewAnswerWindow' + Math.round(Math.random()*100000).toString(10);
		document.AquaQuestion.action = strUrl;
		document.AquaQuestion.method='post';
		document.AquaQuestion.target = newWindow;
		viewAnswerWindow = window.open('', newWindow, winprops);
		//viewAnswerWindow = window.showModelessDialog(strUrl, "", winprops2);
		//viewAnswerWindow.focus();
		document.AquaQuestion.submit();
	}


	jQuery(document).ready(function($){
    $( '#frmOnlineAnswers2' ).submit( function(){
      // set the popup window height
      var pH = $(window).height() > 800 ? 740 : 600;
      window.open('', 'answerWindow', 'toolbar=0,resizable=1,scrollbars=1,left=50,top=50,width=900,height='+pH);
			$(this).attr("target", "answerWindow");
		});
	});


