﻿/* Controls footer height relative to a vertical expanding form */
function footerHeight(){
//var Enable = $get('fyc_form_area');
//if(Enable != null){
//var TopofForm = $get('fyc_form_area').offsetTop;
//var heightofForm = $get('fyc_form_area').offsetHeight;
//var marginBt = $get('fyc_footer_area').style.marginTop;
//var footHeight = $get('fyc_container').offsetHeight;
//if(TopofForm + heightofForm + marginBt < footHeight){
//$get('fyc_footer_area').style.top = footHeight + 'px';
//}
//else {$get('fyc_footer_area').style.top = TopofForm + heightofForm + marginBt + 'px';
//}
//return;
//}
return;
}
/*Controls submit processing behavior*/
function onBeginRequest(sender,args){
var progress = $get('fyc_ctrl_progress');
if(progress != null){
progress.style.display = 'block';
}
var sub = $get('fyc_ctrl_submit_container');
if(sub != null){
sub.style.display = 'none';
}
var textsub = $get('fyc_ctrl_text_nav_id');
if(textsub != null){
textsub.style.display = 'none';
}}
/*Controls submit processing behavior*/
function onEndRequest(sender,args){
var progress = $get('fyc_ctrl_progress');
if(progress != null){
progress.style.display = 'none';
}
var sub = $get('fyc_ctrl_submit_container');
if(sub != null){
sub.style.display = 'block';
}
var textsub = $get('fyc_ctrl_text_nav_id');
if(textsub != null){
textsub.style.display = 'block';
}}
/*Disables chat window on a submit */
//function disableChat(sender,args){
//properClickThrough = true;
//USItimerID  = setTimeout("usiInterval();", 5000);
//}
//function disableChat(sender,args){
//TestClick();
//}



function pageLoad() {
    submitted = false;
}