var color=0;
var loop=0;
function basket()
{
	window.location.href=href="http://www.fscia.org/";
}

function getTDHeight(){
	
	contentTopDiv = document.getElementById("content_top");
	contentBotDiv = document.getElementById("content_bottom");
	contentTop = getPixelsFromTop(contentTopDiv);
	contentBottom = getPixelsFromTop(contentBotDiv);
	contentHeight = contentBottom - contentTop;
	/*if (contentHeight > 350 )
    listfiller= contentHeight - 350;
	else
	listfiller =100;
	document.getElementById("list_filler").style.paddingBottom=+listfiller+"px"; */
	return contentHeight;
}

function getSBHeight(){
	
	contentTopDiv = document.getElementById("side_top");
	contentBotDiv = document.getElementById("side_bottom");
	contentTop = getPixelsFromTop(contentTopDiv);
	contentBottom = getPixelsFromTop(contentBotDiv);
	contentHeight = contentBottom - contentTop;
	/*if (contentHeight > 350 )
    listfiller= contentHeight - 350;
	else
	listfiller =100;
	document.getElementById("list_filler").style.paddingBottom=+listfiller+"px"; */
	return contentHeight;
}



function getPixelsFromTop(obj){
	objFromTop = obj.offsetTop;
	return objFromTop;
}

function membership()
{
	
	window.location.href=href="http://www.fscia.org/login/create_account.php?account=new_member"; 
	
}


function register()
{
	
	window.location.href=href="http://www.fscia.org/conference/reg.php?type=3"; 
	
}



function register_one()
{
	
	window.location.href=href="http://www.fscia.org/conference/reg.php?type=1"; 
	
}



function register_free()
{
	
	window.location.href=href="http://www.fscia.org/conference/reg.php?type=0"; 
	
}

function adjustbk(content, side_content){
	
if (content > side_content )
{
	filler= content - side_content;

	document.getElementById("list_filler").style.paddingBottom=+filler+"px";
	
	
}


if (content < side_content )
{
	filler= side_content - content;

	document.getElementById("content_filler").style.paddingBottom=+filler+"px";
	
	
}


	return filler;
}



 function displaymainbk()
{
loop++;
  var color1="#7BA0D8";
  var color2="#164794";
  var color3="#617DA8";
  var color4="#F42424";
  var color5="#000"; 
  
  switch(loop)
  {
   case 1:
  color=color1;
  break;
  case 2:
  color=color2;
  break;
  case 3:
   color=color3;
  break;
  case 4:
   color=color4;

  break;
	case 5:
   color=color5;
   loop=1;
  break;  
  }
  
 
document.getElementById("rotate").style.backgroundColor  = color;


  intervalID  = setTimeout("displaymainbk()", 5000);

}




function validate_member()
{

var firstname = document.member.fname.value;
var lastname = document.member.lname.value;
var county = document.member.county.value;
var user = document.member.user.value;
var pw = document.member.pw.value;
var phone = document.member.phone.value;
var dept = document.member.dept.value;
var address = document.member.address.value;
var city = document.member.city.value;
var zip = document.member.zip.value; 

var credit = document.member.credit.checked ;
var check = document.member.check.checked ;



 if (!user.length ) 
  { 
    alert("Please add your email address");
     return false;

  } 
 
 if (!pw.length ) 
  { 
    alert("Please add a password");
     return false;

  } 

 if (!firstname.length ) 
  { 
    alert("Please add your first name");
     return false;

  } 
  
  if (!lastname.length ) 
  { 
    alert("Please add your last name");
     return false;

  } 
  
  if (!dept.length ) 
  { 
    alert("Please add your dept");
     return false;

  } 
  
  
  if (!address.length ) 
  { 
    alert("Please add your address");
     return false;

  } 
  
    if (!city.length ) 
  { 
    alert("Please add your city");
     return false;

  } 
  
  
  
   if (!county.length ) 
  { 
    alert("Please add your county");
     return false;

  } 
  
     if (!zip.length ) 
  { 
    alert("Please add your zip code");
     return false;

  } 
  
  
   if (!phone.length ) 
  { 
    alert("Please add your phone number");
     return false;

  } 
 
 if (credit == false && check == false )
{
	alert("Please check payment type Credit or Check");
     return false;
}
  
	return true;
	
}


function validate_creditcard()
{

var firstname = document.paymentinfo.ccfname.value;
var lastname = document.paymentinfo.cclname.value;
var email = document.paymentinfo.email.value;


 if (!firstname.length ) 
  { 
    alert("Please add your first name");
     return false;

  } 
 
 if (!lastname.length ) 
  { 
    alert("Please add your last name");
     return false;

  } 

 if (!email.length ) 
  { 
    alert("Please add your email address");
     return false;

  } 
  


 
 
  
	return true;
	
}

