


function calculatemoreinfoCssProperties()
{
	document.getElementById("regPopCopy").style.height=document.getElementById("regPopCopy").offsetHeight+100;
}

function calculatearticleIndexImgBrdrCssProperties(article) 
{
	
	
	
	if (article=='thirdarticle')
	{
		document.getElementById("articalcontainer").style.height=document.getElementById("articlelinks").offsetHeight+260;
		document.getElementById("articalcontainerborder").style.height=document.getElementById("articlelinks").offsetHeight+173;
		document.getElementById("whiteborder").style.height=document.getElementById("articlelinks").offsetHeight+175;
		document.getElementById("copyart").style.height=document.getElementById("articlelinks").offsetHeight+60;
		document.getElementById("articlefooter").style.top=document.getElementById("articlelinks").offsetHeight+228;
		document.getElementById("articlefooter").style.left=455;
		
	}else if (article=='firstarticle')
	{
		document.getElementById("articalcontainer").style.height=655;
		document.getElementById("articalcontainerborder").style.height=573;
		document.getElementById("whiteborder").style.height=575;
		document.getElementById("copyart").style.height=460;
		document.getElementById("articlefooter").style.top=630;
		document.getElementById("articlefooter").style.left=455;
		
	}
}


function calculateServiceFormImgBrdrCssProperties() { 


var leftHeight = document.getElementById("copyContent3").offsetHeight;
 var rightHeight = document.getElementById("serviceform1").offsetHeight + 59;
 var maxHeight = leftHeight;
 var headerHeight = 190;
 var footerHeight = 40; 
  
 if(rightHeight > leftHeight) 
 {
   maxHeight = rightHeight+headerHeight;
  }
  else
  {
  maxHeight = leftHeight+headerHeight;
  }

  
 document.getElementById("copyContent3").style.height = maxHeight+17+"px";
 document.getElementById("servformleftcopy").style.height = maxHeight+"px";
 document.getElementById("serviceform").style.height = rightHeight+37+"px";
 
 document.getElementById("extremout").style.height = headerHeight+maxHeight+footerHeight+70+"px";
 document.getElementById("serviceformwhiteborder").style.height = maxHeight+20+"px";
 document.getElementById("serviceformpage").style.height = maxHeight+19+"px";
 document.getElementById("outerdiv_rightslice").style.height=headerHeight+maxHeight+28+"px";
 document.getElementById("outerdiv").style.height=headerHeight+maxHeight+39+"px";
 document.getElementById("outerdiv_bottomborder").style.top = headerHeight+maxHeight+60+"px";
 document.getElementById("footerLinks").style.top = headerHeight+maxHeight+70+"px";
 document.getElementById("innerbox").style.height=maxHeight+footerHeight-10+"px";
 document.getElementById("serviceform_submit").style.top=rightHeight-40+"px"; 
 /*document.getElementById("serviceform_processing").style.top=rightHeight-40+"px";*/

}


function calculateNoFormImgBrdrCssProperties()
{ 

 // Retrieve region div heights
  var headerHeight = document.getElementById("servformleftcopy1").offsetHeight;
  document.getElementById("servformleftcopy1").style.height= headerHeight+"px";
  document.getElementById("serviceformwhiteborder").style.height= headerHeight+"px";
  document.getElementById("innerbox").style.height= (headerHeight+10)+"px";
  document.getElementById("outerdiv").style.height= (headerHeight+220)+"px";
  document.getElementById("outerdiv_noformbottomborder").style.top=(headerHeight+221)+"px";
  document.getElementById("extremout").style.height= (headerHeight+284)+"px";
  document.getElementById("footerLinks").style.top= (headerHeight+239)+"px";
  document.getElementById("outerdiv_noformrightslice").style.height= (headerHeight+215)+"px";
  document.getElementById("outrdivborder").style.height=(headerHeight+221)+"px";
}

function calculateNoFormImgBrdrCssPropertiesprequal()
{ 

 // Retrieve region div heights
  var headerHeight = document.getElementById("servformleftcopy1").offsetHeight;
  document.getElementById("servformleftcopy1").style.height= headerHeight+"px";
  document.getElementById("serviceformwhiteborder").style.height= headerHeight+"px";
  document.getElementById("innerbox").style.height= (headerHeight+10)+"px";
  document.getElementById("outerdiv").style.height= (headerHeight+100)+"px";
  document.getElementById("outerdiv_noformbottomborder004").style.top=(headerHeight+100)+"px";
  document.getElementById("extremout").style.height= (headerHeight+160)+"px";
  document.getElementById("footerLinks").style.top= (headerHeight+100)+"px";
  document.getElementById("outerdiv_noformrightslice").style.height= (headerHeight+95)+"px";
  document.getElementById("outrdivborder").style.height=(headerHeight+100)+"px";
  document.getElementById("submitnoiBtn").style.top= (headerHeight-120)+"px";
  document.getElementById("nonoithanks").style.top= (headerHeight-80)+"px";
  document.getElementById("processingnoi").style.top= (headerHeight-110)+"px";
  if(document.getElementById("required"))
  {
   document.getElementById("required").style.top= headerHeight-120;
  }
  
 for (i = 0; i < 4; i=i+2){
  var j = i+1;
  if(document.getElementById('sp'+i)!= null && document.getElementById('sp'+j) != null){
   if(document.getElementById('sp'+i).offsetHeight > document.getElementById('sp'+j).offsetHeight)
      document.getElementById('sp'+j).style.height = document.getElementById('sp'+i).offsetHeight+"px";
      else   
    document.getElementById('sp'+i).style.height = document.getElementById('sp'+j).offsetHeight+"px";
  }
 }
}

function calculateNoFormImgBrdrCssPropertiesform()
{ 

 // Retrieve region div heights
  var middleHeight = document.getElementById("yelloContent").offsetHeight;
  var headerHeight = document.getElementById("servformleftcopy2").offsetHeight;
  document.getElementById("servformleftcopy2").style.height= (middleHeight+70)+"px";
  document.getElementById("serviceformwhiteborder").style.height= (middleHeight+70)+"px";
  document.getElementById("innerbox").style.height= (middleHeight+80)+"px";
  document.getElementById("outerdiv").style.height= (middleHeight+180)+"px";
  document.getElementById("outerdiv_noformbottomborder").style.top=(middleHeight+175)+"px";
  document.getElementById("extremout").style.height= (middleHeight+244)+"px";
  document.getElementById("footerLinks").style.top= (middleHeight+202)+"px";
  document.getElementById("outerdiv_noformrightslice").style.height= (middleHeight+170)+"px";
  document.getElementById("outrdivborder").style.height=(middleHeight+181)+"px";
  document.getElementById("submitnoiBtn").style.top= middleHeight-25;
  document.getElementById("nonoithanks").style.top= middleHeight+20;
  document.getElementById("processingnoi").style.top= middleHeight;
  if(document.getElementById("required"))
  {
  	document.getElementById("required").style.top= middleHeight-25;
  }
  
}


function calculateNoFormImgBrdrCssPropertiesform1()
{ 

 // Retrieve region div heights
  var middleHeight = document.getElementById("yelloContent1").offsetHeight;
  var headerHeight = document.getElementById("servformleftcopy2").offsetHeight;
  document.getElementById("servformleftcopy2").style.height= (middleHeight+70)+"px";
  document.getElementById("serviceformwhiteborder").style.height= (middleHeight+85)+"px";
  document.getElementById("innerbox").style.height= (middleHeight+95)+"px";
  document.getElementById("outerdiv").style.height= (middleHeight+180)+"px";
  document.getElementById("outerdiv_noformbottomborder1").style.top=(middleHeight+198)+"px";
  document.getElementById("extremout").style.height= (middleHeight+244)+"px";
  document.getElementById("footerLinks").style.top= (middleHeight+202)+"px";
  document.getElementById("outerdiv_noformrightslice1").style.height= (middleHeight+180)+"px";
  document.getElementById("outrdivborder").style.height=(middleHeight+181)+"px";
  document.getElementById("sumbitbutton").style.top= middleHeight-15;
  document.getElementById("processingnoiAdd").style.top= middleHeight;
}



function calculateNoFormAdSenseBrdrCssProperties()
{ 

 // Retrieve region div heights
  var headerHeight = document.getElementById("servformleftcopyadsense").offsetHeight;
  document.getElementById("servformleftcopyadsense").style.height= headerHeight+"px";
  document.getElementById("serviceformwhiteborderadsense").style.height= headerHeight+"px";
  document.getElementById("innerboxadsense").style.height= (headerHeight+10)+"px";
  document.getElementById("outerdivadsense").style.height= (headerHeight+220)+"px";
  document.getElementById("outerdiv_noformbottomborderadsense").style.top=(headerHeight+221)+"px";
  document.getElementById("extremoutadsense").style.height= (headerHeight+284)+"px";
  document.getElementById("footerlinksadsense").style.top= (headerHeight+239)+"px";
  document.getElementById("outerdiv_noformrightsliceadsense").style.height= (headerHeight+208)+"px";
  document.getElementById("outrdivborderadsense").style.height=(headerHeight+221)+"px";
}

function calculateNoFormAdSenseBrdrCssPropertiesSorry1()
{ 

 // Retrieve region div heights
  var headerHeight = document.getElementById("servformleftcopyadsense").offsetHeight;
  document.getElementById("servformleftcopyadsense").style.height= headerHeight+"px";
  document.getElementById("serviceformwhiteborderadsensesorry").style.height= headerHeight+"px";
  document.getElementById("innerboxadsensesorry").style.height= (headerHeight+10)+"px";
  document.getElementById("outerdivadsensesorry").style.height= (headerHeight+220)+"px";
  document.getElementById("outerdiv_noformbottomborderadsense").style.top=(headerHeight+221)+"px";
  document.getElementById("extremoutadsensesorry").style.height= (headerHeight+284)+"px";
  document.getElementById("footerlinksadsense").style.top= (headerHeight+239)+"px";
  document.getElementById("outerdiv_noformrightsliceadsensesorry").style.height= (headerHeight+208)+"px";
  document.getElementById("outrdivborderadsense").style.height=(headerHeight+221)+"px";
}

function calculateNoFormAdSenseBrdrCssPropertiesthankyou()
{ 

 // Retrieve region div heights
  var headerHeight = document.getElementById("servformleftcopyadsense").offsetHeight;
  document.getElementById("servformleftcopyadsense").style.height= headerHeight+"px";
  document.getElementById("serviceformwhiteborderadsense1").style.height= headerHeight+"px";
  document.getElementById("innerboxadsense1").style.height= (headerHeight+10)+"px";
  document.getElementById("outerdivadsense1").style.height= (headerHeight+100)+"px";
  document.getElementById("outerdiv_noformbottomborderadsense").style.top=(headerHeight+100)+"px";
  document.getElementById("extremoutadsense1").style.height= (headerHeight+170)+"px";
  document.getElementById("footerlinksadsense").style.top= (headerHeight+125)+"px";
  document.getElementById("outerdiv_noformrightsliceadsense1").style.height= (headerHeight+95)+"px";
  document.getElementById("outrdivborderadsense1").style.height=(headerHeight+101)+"px";
}

function calculateNoFormAdSenseBrdrCssPropertiesSorry()
{ 

 // Retrieve region div heights
  var headerHeight = document.getElementById("servformleftcopyadsense").offsetHeight;
  document.getElementById("servformleftcopyadsense").style.height= headerHeight+"px";
  document.getElementById("serviceformwhiteborderadsense").style.height= headerHeight+"px";
  document.getElementById("innerboxadsense").style.height= (headerHeight+10)+"px";
  document.getElementById("outerdivadsense").style.height= (headerHeight+100)+"px";
  document.getElementById("outerdiv_noformbottomborderadsense").style.top=(headerHeight+100)+"px";
  document.getElementById("extremoutadsense").style.height= (headerHeight+170)+"px";
  document.getElementById("footerlinksadsense").style.top= (headerHeight+125)+"px";
  document.getElementById("outerdiv_noformrightsliceadsense").style.height= (headerHeight+95)+"px";
  document.getElementById("outrdivborderadsense").style.height=(headerHeight+100)+"px";
}

function calculateIndexAndFormImgBrdrCssProperties() { 


  // Retrieve region div heights
  var headerHeight = document.getElementById("indexformpage").offsetHeight;
  var indexForm=headerHeight+190;
  var whiteBorder=indexForm+1;
  var innerboxBottomBrd=indexForm+175;
  var innerboxRightSlice=indexForm+1;
  var outerdivRightSlice=indexForm+15;
 
  
  document.getElementById("submitBtn").style.top=headerHeight;
  document.getElementById("whiteborder").style.height=whiteBorder;
  document.getElementById("indexform").style.height=indexForm;
  document.getElementById("innerbox_bottomborder").style.top=innerboxBottomBrd;
  document.getElementById("innerbox_rightslice").style.height=innerboxRightSlice;
  if(document.getElementById("dottedline2")!=null)
  {
  	document.getElementById("dottedline2").style.top=indexForm-115;
  }
  document.getElementById("innerbox").style.height=indexForm+210;
  document.getElementById("outerdiv").style.height=indexForm+428;
  document.getElementById("outerdiv_bottomborder").style.top=indexForm+443;
  document.getElementById("extremout").style.height=indexForm+490;
  document.getElementById("footerLinks").style.top=indexForm+445;
  document.getElementById("outerdiv_rightslice").style.height=indexForm+411;
  document.getElementById("outrdivborder").style.height=indexForm+431;
 
  
}
function calculateIndexAndFormImgBrdrCssProperties1() { 


  // Retrieve region div heights
  var headerHeight = document.getElementById("indexformpage1").offsetHeight;
  var indexForm=headerHeight+190;
  var whiteBorder=indexForm+1;
  var innerboxBottomBrd=indexForm+175;
  var innerboxRightSlice=indexForm+1;
  var outerdivRightSlice=indexForm+15;
 
  
  document.getElementById("submitBtn").style.top=headerHeight;
  document.getElementById("whiteborder").style.height=whiteBorder;
  document.getElementById("indexform").style.height=indexForm;
  document.getElementById("innerbox_bottomborder").style.top=innerboxBottomBrd;
  document.getElementById("innerbox_rightslice").style.height=innerboxRightSlice;
  if(document.getElementById("dottedline2")!=null)
  {
  	document.getElementById("dottedline2").style.top=indexForm-115;
  }
  document.getElementById("innerbox").style.height=indexForm+210;
  document.getElementById("outerdiv").style.height=indexForm+428;
  document.getElementById("outerdiv_bottomborder").style.top=indexForm+443;
  document.getElementById("extremout").style.height=indexForm+490;
  document.getElementById("footerLinks").style.top=indexForm+445;
  document.getElementById("outerdiv_rightslice").style.height=indexForm+411;
  document.getElementById("outrdivborder").style.height=indexForm+431;
 
  
}


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 = '520px';
   var win_height = '350px';
   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() }
    }
}


function doProcessing() {
  document.getElementById('submitBtn').className = 'thide'; 	
  document.getElementById('processing').className = 'tshow';
}
function doProcessing1() {
  document.getElementById('submitBtn001').className = 'thide'; 	
  document.getElementById('processing').className = 'tshow';
}

function doProcessingNoForm()
{
  document.getElementById('serviceform_submit').className = 'thide'; 	
  document.getElementById('serviceform_processing').className = 'tshow1';
}

function doProcessingNothanks() {
document.getElementById('submitnoiBtn').className = 'thide';
	document.getElementById('processingnoi').className = 'tshow1';
	document.getElementById('nonoithanks').className = 'thide';
	
}

function doProcessingAdd() {
document.getElementById('sumbitbutton').className = 'thide';
document.getElementById('processingnoiAdd').className = 'tshow1';
//document.getElementById('nonoithanks').className = 'thide';

}

function doProcessingAdd() {
document.getElementById('sumbitbutton').className = 'thide';
document.getElementById('processingnoiAdd').className = 'tshow1';
//document.getElementById('nonoithanks').className = 'thide';
}

function submitNoThanks() {
document.getElementById('nothanks').value = 'nothanks';
//document.getElementById('nonoithanks').className = 'thide';

}

