function doProcessing() {
 document.getElementById('submitBtn').className = 'thide'; 
 document.getElementById('processing').className = 'tshow';
}
function calculateFormImgBrdrMctoggleProperties() {displayinfo(vendorcount,'no');}
function displayContent(counters){ displayinfo(counters,'yes');}
function calculateNonFormCssProperties() {
 var headerHeight = document.getElementById("header").offsetHeight;
 var copyHeight = document.getElementById("nonFormCopy").offsetHeight;
 document.getElementById("nonFormCopy").style.top=headerHeight;
 document.getElementById("nonFormFooter").style.top=headerHeight+copyHeight;
 document.getElementById("footerLinks").style.top=headerHeight+copyHeight+98;
} 
function container_Hgt(){
if(document.getElementById("formContentCell1").offsetHeight < document.getElementById("formContentCell2").offsetHeight){
document.getElementById("formContentCell1").style.height = document.getElementById("formContentCell2").offsetHeight+"px";
}else {
document.getElementById("formContentCell2").style.height = document.getElementById("formContentCell1").offsetHeight+"px";
 }}
function displayinfo(counters,increment){
var h; var i = document.getElementById('formval').value; var j;
if (i == counters) {
if(increment == 'yes') {i=1; }
} else {
if(increment == 'yes'){i++;}
}
for (j=1; j<=counters;j++) {
 if (j==i) {
 MainIDElem = document.getElementById('mainId'+j);
 MainIDElem.className= 'tshowinline';
 showNodeElmtfoot = document.getElementById('footerid'+j);
 showNodeElmtfoot.className= 'tshowinline';
 if(document.getElementById('footerid_'+j)!=null){
 showNodeElmtfoot1 = document.getElementById('footerid_'+j);
 showNodeElmtfoot1.className= 'tshowinline';} 
}else{
 MainIDElem = document.getElementById('mainId'+j);
 MainIDElem.className= 'thide';
 showNodeElmtfoot = document.getElementById('footerid'+j);
 showNodeElmtfoot.className= 'thide';
 if(document.getElementById('footerid_'+j)!=null){
 showNodeElmtfoot1 = document.getElementById('footerid_'+j);
 showNodeElmtfoot1.className= 'thide';}
 }}
 // Sears
 if (objArr[i] == '3024'){ 
 if(document.getElementById('AgreeToReceiveEmail')!=null){
 wpelement = document.getElementById('AgreeToReceiveEmail');
 wpelement.className = 'tshowinline1';}
 if(document.getElementById('ContactMe')!=null && tservcode!=null){
 if(tservcode=='CABINET_INSTALL'){
 wpelement = document.getElementById('ContactMe');
 wpelement.className = 'tshowinline1';}
}}
else{
 if(document.getElementById('AgreeToReceiveEmail')!=null){
 wpelement = document.getElementById('AgreeToReceiveEmail');
 wpelement.className = 'thide';}
if(document.getElementById('ContactMe')!=null){
 wpelement = document.getElementById('ContactMe');
 wpelement.className = 'thide';
}}
document.getElementById('formval').value = i;}
function openWin(page,win_width,win_height) {
 try { popup_window.close(); } catch(e) {
 }
if ( page.indexOf("mailto") == -1) {
var options = "scrollbars=yes, width=" + win_width + ", height=" + win_height;
var win = window.open(page, 'MyWin', options);
if (window.focus) { win.focus() } }
}
function openPopupWindow(page){
try { popup_window.close();} catch(e) {
}
 var win_width = '517px';
 var win_height = '460px';
 if (page=='popups/options.jsp'){
 win_width = '630px';
 win_height = '700px';
 }
 if ( page.indexOf("mailto") == -1) {
 var options = "scrollbars=yes, width=" + win_width + ", height=" + win_height;
 var win = window.open(page, 'MyWin', options);
 if (window.focus) { win.focus() } }}
