/* 
 *@Copyright@
 *@6.10@ 
*/
function popupReqWindow(str) {
  var PositionX = 0;
  	var PositionY = 0;
   	var optIE='scrollbars=yes,width=630, height=520,  resizable=no, status=no, toolbar=no, left='+PositionX+',top='+PositionY;
   	trialwindow=window.open(str,"_blank",optIE);
   trialwindow.focus();
   trialwindow.print();
  }
  
function orgIpList(){
document.oHSUSTrialForm.action=webroot+"/trial/loadOrgIpList.do"
	document.oHSUSTrialForm.submit();
}
function getStates(){
	document.oHSUSTrialForm.action=webroot+"/trial/loadStates.do"
	document.oHSUSTrialForm.submit();
}
function doCancelTrial(){
	document.oHSUSTrialForm.action=webroot+"/trial/cancelTrial.do"
	document.oHSUSTrialForm.submit();
}

function doCancelTrialFB(){
	document.oHSUSTrialFeedbackForm.action=webroot+"/trial/cancelTrialfb.do"
	document.oHSUSTrialFeedbackForm.submit();
}
function disableTxtArea(){
	document.oHSUSTrialForm.ipList.value = "";
	document.oHSUSTrialForm.ipList.disabled = true;
}
function enableTxtArea(){
	document.oHSUSTrialForm.ipList.disabled = false;
}
function doResetTrial(){
	document.oHSUSTrialForm.action=webroot+"/trial/resetTrial.do"
	document.oHSUSTrialForm.submit();
}

function getPartA(){
	document.oHSUSTrialForm.action=webroot+"/toc/showPart.do?id=A"
	document.oHSUSTrialForm.submit();
}
function doSubmitTrial(){
document.oHSUSTrialForm.action=webroot+"/trial/submitTrial.do"
	document.oHSUSTrialForm.submit();
}


function doAdminSubmitTrial(){
document.oHSUSTrialForm.action=webroot+"/trial/adminSubmitTrial.do"
	document.oHSUSTrialForm.submit();
} 

function doOrgNoAdminTrialSubmit() {
document.oHSUSTrialForm.action=webroot+"/trial/orgNoAdminSubmitTrial.do"
	document.oHSUSTrialForm.submit();
}
function doTrialFeatures(){
document.oHSUSTrialForm.action=webroot+"/trial/loadtrialfeatures.do"
	document.oHSUSTrialForm.submit();
}
function doTrialFeedback(){
document.oHSUSTrialFeedbackForm.action=webroot+"/trial/onloadtrialfeedback.do"
	document.oHSUSTrialFeedbackForm.submit();
}
function doTrialFeedbackSubmit(){
//alert(document.oHSUSTrialFeedbackForm.positiveFb.value);
document.oHSUSTrialFeedbackForm.action=webroot+"/trial/trialfeedbacksubmit.do";
	document.oHSUSTrialFeedbackForm.submit();
}
function doresetfeedback(){
document.oHSUSTrialFeedbackForm.selfeedback.value = "Positive Feedback";
document.oHSUSTrialFeedbackForm.comment.value = "";
document.oHSUSTrialFeedbackForm.positiveFb.checked = false;
document.oHSUSTrialFeedbackForm.name.value = "";
document.oHSUSTrialFeedbackForm.organization.value = "";
document.oHSUSTrialFeedbackForm.emailid.value = "";
document.oHSUSTrialFeedbackForm.submit();

}
function doresetNoAdmin(){
document.oHSUSTrialForm.userEmailaddress.value = "";
document.oHSUSTrialForm.phone.value = "";
document.oHSUSTrialForm.action=webroot+"/trial/orgNoAdminTrialLoad.do"
	document.oHSUSTrialForm.submit();
}
function doPositive(obj){
	if(obj.value == "Positive Feedback"){
		document.oHSUSTrialFeedbackForm.positiveFb.value= "Yes";
	}else {
		document.oHSUSTrialFeedbackForm.positiveFb.value= "No";
	}
	document.oHSUSTrialFeedbackForm.submit();
}
function doPositiveComments(obj){
	if(obj.value == "Positive Feedback"){
		document.oHSUSTrialFeedbackForm.positiveFb.value= "Yes";
	}else {
		document.oHSUSTrialFeedbackForm.positiveFb.value= "No";
	}
	document.oHSUSTrialFeedbackForm.submit();
}
function doFeedback(count){
	document.oHSUSTrialFeedbackForm.feedbackCount.value = count;
	document.oHSUSTrialFeedbackForm.submit();
}
function doCommentSubmit(){
	document.oHSUSTrialFeedbackForm.action=webroot+"/trial/commentsSubmit.do";
	document.oHSUSTrialFeedbackForm.submit();
}
function finalVersionSubmit(){
	document.oHSUSTrialFeedbackForm.action=webroot+"/trial/finalVersionSubmit.do";
	document.oHSUSTrialFeedbackForm.submit();
}

function resetfinalVersion(){
	document.oHSUSTrialFeedbackForm.comment.value = "";
	document.oHSUSTrialFeedbackForm.name.value = "";
	document.oHSUSTrialFeedbackForm.organization.value = "";
	document.oHSUSTrialFeedbackForm.emailid.value = "";
	document.oHSUSTrialFeedbackForm.submit();
}