/*------------------------------------------------------------
	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
	Web Site: http://txkang.com
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)
	
	Please retain this copyright notice in the script.
	License is granted to user to reuse this code on 
	their own website if, and only if, 
	this entire copyright notice is included.
--------------------------------------------------------------*/

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium' );
var startSz = 1;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 3 ) sz = 3;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}
function formatCurrency(num) 
{
    num = num.toString().replace(/\$|\,/g,'');
    if(isNaN(num))
    num = "0";
    sign = (num == (num = Math.abs(num)));
    num = Math.floor(num*100+0.50000000001);
    cents = num%100;
    num = Math.floor(num/100).toString();
    if(cents<10)
    cents = "0" + cents;
    for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
    num = num.substring(0,num.length-(4*i+3))+','+
    num.substring(num.length-(4*i+3));
    return (((sign)?'':'-') + '$' + num + '.' + cents);
}
function AcctType()
{	
        alert ("This is a Javascript Alert");
        /*if(document.getElementById('name_cbCCorBA'))
        {
            alert ("Pass 1");
            if (document.getElementById('name_cbCCorBA').checked)
 	        {
 	            alert ("Pass 2");
 	            document.getElementById('divBA').style.display = "block";
 	            document.getElementById('divCC').style.display = "none";
	        }
	        else
 	        {
 	            alert ("Pass 3");
 	            document.getElementById('divCC').style.display = "block";
 	            document.getElementById('divBA').style.display = "none";
	        }
	    }*/	    
}
function payments()
{	
        if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_SLpayments"))
	    {
	        if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_SLpayments").value == "1")
 	        {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_IPPayments").innerHTML = "Payment";}
	        else
 	        {
 	            add = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_SLpayments").value);
 	            total = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtCircle_Total").value);
 	            var num = total / add;
 	            document.getElementById("ctl00_ctl00_cphChildContent_cphContent_IPPayments").innerHTML = "Payments of " + formatCurrency(num);
	        }
	    }   
	    else if(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$SLpayments"))
        {
            if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$SLpayments").value == "1")
 	        {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$IPPayments").innerHTML = "Payment"; }
	        else
 	        {
 	            add = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$SLpayments").value);
 	            total = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtCircle_Total").value);
 	            var num = total / add;
 	            document.getElementById("ctl00$ctl00$cphChildContent$cphContent$IPPayments").innerHTML = "Payments of " + formatCurrency(num);
	        }
	    } 
}
function AddGolden()
{
    if(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtCircle_Add"))
    {
    add = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtCircle_Add").value);
	total = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtCircle_Amt").value);
	}
	else
	{
	    add = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtCircle_Add").value);
	    total = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtCircle_Amt").value);
	}
	if (add > 0)
	{ 
	    var num = add + total;
	    if(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtCircle_Total"))
	    {
	    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtCircle_Total").value = num.toFixed(2); 
	    }
	    else
	    {
	    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtCircle_Total").value = num.toFixed(2); 
	    }
	    if (num >= 10000)
	    {alert("Thank you for your interest in giving to the Southwest Foundation for Biomedical Research.  Because of the size of your gift, we encourage you to consider a payment method other than a credit card.  Please contact Corbett Christie, director of development, by email (cchristie@sfbr.org) or telephone (210) 258-9870. ");}
	}	   
}
function AddFounder()
{
    if(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtFounder_Add"))
    {
    add = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtFounder_Add").value);
	total = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$ddlFounderType").value);
    }
    else
    {
    add = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtFounder_Add").value);
	total = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_ddlFounderType").value);
	}
    
	if (add > 0)
	{ 
	    var num = add + total;
	    if(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtFounder_Total"))
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtFounder_Total").value = num.toFixed(2);} 
	    else
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtFounder_Total").value = num.toFixed(2);} 
	    if (num >= 10000)
	    {alert("Thank you for your interest in giving to the Southwest Foundation for Biomedical Research.  Because of the size of your gift, we encourage you to consider a payment method other than a credit card.  Please contact Corbett Christie, director of development, by email (cchristie@sfbr.org) or telephone (210) 258-9870. ");}
	}	   
}
function AddMember()
{
    if(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtMember_Add"))
    {
    add = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtMember_Add").value);
	total = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$ddlMemberType").value);
	}
	else
	{
	add = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtMember_Add").value);
	total = Number(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_ddlMemberType").value);
	}
	if (add > 0)
	{ 
	    var num = add + total;
	    if(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtMember_Total"))
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$txtMember_Total").value = num.toFixed(2); }
	    else
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_txtMember_Total").value = num.toFixed(2); }
	    if (num >= 10000)
	    {alert("Thank you for your interest in giving to the Southwest Foundation for Biomedical Research.  Because of the size of your gift, we encourage you to consider a payment method other than a credit card.  Please contact Corbett Christie, director of development, by email (cchristie@sfbr.org) or telephone (210) 258-9870. ");}
	}	   
}
function PanelClick(sender, e) 
{
    var Messages = $get('<%=Messages.ClientID%>');
    Highlight(Messages);
}
function ActiveTabChanged(sender, e) 
{
    var CurrentTab = $get('<%=CurrentTab.ClientID%>');
    CurrentTab.innerHTML = sender.get_activeTab().get_headerText();
    Highlight(CurrentTab);
}
var HighlightAnimations = {};
function Highlight(el) 
{
    if (HighlightAnimations[el.uniqueID] == null) 
    {
        HighlightAnimations[el.uniqueID] = AjaxControlToolkit.Animation.createAnimation({
        AnimationName : "color",
        duration : 0.5,
        property : "style",
        propertyKey : "backgroundColor",
        startValue : "#FFFF90",
        endValue : "#FFFFFF"
        }, el);
    }
    HighlightAnimations[el.uniqueID].stop();
    HighlightAnimations[el.uniqueID].play();
}
function ToggleHidden(value) 
{$find('<%=Tabs.ClientID%>').get_tabs()[2].set_enabled(value);}
function HideDivP()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('divPHD').style.display == "none")
 	    {
 	        document.getElementById('divPHD').style.display = "block";
 	        document.getElementById('btnP').value = "Hide PHD";
	    }
	    else
 	    {
 	        document.getElementById('divPHD').style.display = "none";
 	        document.getElementById('btnP').value = "Show PHD";
	    }
}
function HideDivM()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('divMas').style.display == "none")
 	    {
 	        document.getElementById('divMas').style.display = "block";
 	        document.getElementById('btnM').value = "Hide Masters";
	    }
	    else
 	    {
 	        document.getElementById('divMas').style.display = "none";
 	        document.getElementById('btnM').value = "Show Masters";
	    }
}
function HideDivB()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('divBach').style.display == "none")
 	    {
 	        document.getElementById('divBach').style.display = "block";
 	        document.getElementById('btnB').value = "Hide Bachelors";
	    }
	    else
 	    {
 	        document.getElementById('divBach').style.display = "none";
 	        document.getElementById('btnB').value = "Show Bachelors";
	    }
}
function HideDivS()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('divPost').style.display == "none")
 	    {
 	        document.getElementById('divPost').style.display = "block";
 	        document.getElementById('btnS').value = "Hide Details";
	    }
	    else
 	    {
 	        document.getElementById('divPost').style.display = "none";
 	        document.getElementById('btnS').value = "Show Details";
	    }
}
function HideDivLink_Add()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('link_grid').style.display == "none")
 	    {
 	        document.getElementById('link_grid').style.display = "block";
 	        document.getElementById('btnLNK').value = "Hide Grid";
	    }
	    else
 	    {
 	        document.getElementById('link_grid').style.display = "none";
 	        document.getElementById('btnLNK').value = "Show Grid";
	    }
}
function HideDivLink_Add1()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('link_grid1').style.display == "none")
 	    {
 	        document.getElementById('link_grid1').style.display = "block";
 	        document.getElementById('btnLNK1').value = "Hide Add Panel";
	    }
	    else
 	    {
 	        document.getElementById('link_grid1').style.display = "none";
 	        document.getElementById('btnLNK1').value = "Show Add Panel";
	    }
 	}
 	function HideDivEmail() {
 	    //alert ("This is a Javascript Alert");
 	    if (document.getElementById('link_grid').style.display == "none") {
 	        document.getElementById('link_grid').style.display = "block";
 	    }
 	    else {
 	        document.getElementById('link_grid').style.display = "none";
 	    }
 	}
 	function HideDivEmail1() {
 	    //alert ("This is a Javascript Alert");
 	    if (document.getElementById('link_grid1').style.display == "none") {
 	        document.getElementById('link_grid1').style.display = "block";
 	    }
 	    else {
 	        document.getElementById('link_grid1').style.display = "none";
 	    }
 	}
function HideDivLink_Minutes()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('link_minutes').style.display == "none")
 	    {
 	        document.getElementById('link_minutes').style.display = "block";
 	        document.getElementById('btnLNK').value = "Hide Grid";
	    }
	    else
 	    {
 	        document.getElementById('link_minutes').style.display = "none";
 	        document.getElementById('btnLNK').value = "Show Grid";
	    }
}
function HideDivLink_Minutes1()
{	
        //alert ("This is a Javascript Alert");
	    if (document.getElementById('link_minutes1').style.display == "none")
 	    {
 	        document.getElementById('link_minutes1').style.display = "block";
 	        document.getElementById('btnLNK1').value = "Hide Add Panel";
	    }
	    else
 	    {
 	        document.getElementById('link_minutes1').style.display = "none";
 	        document.getElementById('btnLNK1').value = "Show Add Panel";
	    }
}
function Tokens(bag)
{
    //alert ("This is a Javascript Alert");
	tokens = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$gambling_tokens_total").value);
	cost = Number(document.getElementById("ctl00$ctl00$cphChildContent$cphContent$gambling_cost_total").value);
    if (bag == "40")
	{tokens = (tokens+5);}
	if (bag == "20")
	{tokens = (tokens+2);}
	if (bag == "0")
	{tokens = 0;}
	
	mod = (tokens%5);
	if (tokens < 10)
	{
		if (tokens == 5)
		{
			cost = 40;
		}
		else if (tokens == 7)
		{cost = 60;}
		else if (tokens == 9)
		{
			tokens = 10;
			cost = 80;
		}
		else
		{
			div = (tokens/2);
			cost = (div*20);
		}
	}
	else if (mod == 0)
	{
		div = (tokens/5)
		cost = (div*40);
	}
	else if (tokens >= 10)
	{
		mod1 = (mod%2);
		if (mod1 != 0)
		{
			tokens = (tokens -1);
			mod = (tokens%5);
			div = ((tokens-mod)/5);	
			cost = ((mod/2)*20) + (div*40);
		}
		else
		{
			div = ((tokens-mod)/5);	
			cost = ((mod/2)*20) + (div*40);
		}
	}
	document.getElementById("ctl00$ctl00$cphChildContent$cphContent$Gambling").value = "Purchasing " + tokens +" tokens for $" + cost + " dollars";
	document.getElementById("ctl00$ctl00$cphChildContent$cphContent$gambling_tokens_total").value = tokens;
	document.getElementById("ctl00$ctl00$cphChildContent$cphContent$gambling_cost_total").value = cost;
   
}
function CopyValues()
{
	if (document.getElementById("same").checked == true) 
	{
	    // copying
	    document.getElementById("billing_contact_name_first").value = document.getElementById("contact_fname").value;
	    document.getElementById("billing_contact_name_middle").value = document.getElementById("contact_mname").value;
	    document.getElementById("billing_contact_name_last").value = document.getElementById("contact_lname").value;
	    document.getElementById("billing_address").value = document.getElementById("contact_address").value;
	    document.getElementById("billing_city").value = document.getElementById("contact_city").value;
	    document.getElementById("billing_state").value = document.getElementById("contact_state").value;
	    document.getElementById("billing_zip").value = document.getElementById("contact_zip").value;
	}
	
	if (document.getElementById("same").checked == false) 
	{
	    // clear
	    document.getElementById("billing_contact_name_first").value = "";
	    document.getElementById("billing_contact_name_middle").value = "";
	    document.getElementById("billing_contact_name_last").value = "";
	    document.getElementById("billing_address").value = "";
	    document.getElementById("billing_city").value = "";
	    document.getElementById("billing_state").value = "";
	    document.getElementById("billing_zip").value = "";
	} 	
}
function AddLinks()
{
	// copying
	var current = document.getElementById("ctl00_cphContent_txtAddLinks").value
	var link = document.getElementById("ctl00_cphContent_txtAdd").value;
	var url = document.getElementById("ctl00_cphContent_txtAddURL").value;
	document.getElementById("ctl00_cphContent_txtAddLinks").value = current + "LINK:" + link + "URL:" + url;
	document.getElementById("ctl00_cphContent_txtAddLinks").focus();
}
function AllRaffle()
{
    //alert ("This is a Javascript Alert");
    if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_allraffle"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_allraffle").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle1").checked = true; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets1").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle2").checked = true; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets2").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle3").checked = true; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets3").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle4").checked = true; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets4").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle5").checked = true; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets5").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle6").checked = true; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets6").value = "1";
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle7").checked = true; 
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets7").value = "1";
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle8").checked = true; 
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets8").value = "1";
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle9").checked = true; 
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets9").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle10").checked = true; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets10").value = "1";
	    }
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_allraffle").checked == false) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle1").checked = false;
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets1").value = "";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle2").checked = false; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets2").value = "";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle3").checked = false; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets3").value = "";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle4").checked = false; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets4").value = "";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle5").checked = false; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets5").value = "";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle6").checked = false; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets6").value = "";
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle7").checked = false; 
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets7").value = "";
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle8").checked = false; 
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets8").value = "";
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle9").checked = false; 
		    //document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets9").value = "";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle10").checked = false; 
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets10").value = "";
	    }
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_allraffle").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle1").checked = true; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets1").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle2").checked = true; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets2").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle3").checked = true; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets3").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle4").checked = true; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets4").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle5").checked = true; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets5").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle6").checked = true; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets6").value = "1";
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle7").checked = true; 
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets7").value = "1";
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle8").checked = true; 
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets8").value = "1";
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle9").checked = true; 
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets9").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle10").checked = true; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets10").value = "1";
	    }
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_allraffle").checked == false) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle1").checked = false;
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets1").value = "";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle2").checked = false; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets2").value = "";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle3").checked = false; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets3").value = "";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle4").checked = false; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets4").value = "";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle5").checked = false; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets5").value = "";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle6").checked = false; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets6").value = "";
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle7").checked = false; 
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets7").value = "";
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle8").checked = false; 
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets8").value = "";
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle9").checked = false; 
		    //document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets9").value = "";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle10").checked = false; 
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets10").value = "";
	    }	
	}
}
function Raffle1()
{
    if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle1"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle1").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets1").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets1").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle1").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets1").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle1").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets1").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets1").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle1").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets1").value = "";} 	
	}
}
function Raffle2()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle2"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle2").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets2").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets2").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle2").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets2").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle2").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets2").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets2").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle2").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets2").value = "";} 	
	}
}
function Raffle3()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle3"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle3").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets3").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets3").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle3").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets3").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle3").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets3").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets3").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle3").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets3").value = "";} 	
	}
}
function Raffle4()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle4"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle4").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets4").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets4").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle4").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets4").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle4").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets4").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets4").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle4").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets4").value = "";} 	
	}
}
function Raffle5()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle5"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle5").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets5").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets5").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle5").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets5").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle5").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets5").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets5").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle5").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets5").value = "";} 	
	}
}
function Raffle6()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle6"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle6").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets6").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets6").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle6").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets6").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle6").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets6").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets6").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle6").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets6").value = "";} 	
	}
}
function Raffle7()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle7"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle7").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets7").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets7").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle7").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets7").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle7").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets7").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets7").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle7").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets7").value = "";} 	
	}
}
function Raffle8()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle8"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle8").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets8").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets8").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle8").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets8").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle8").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets8").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets8").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle8").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets8").value = "";} 	
	}
}
function Raffle9()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle9"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle9").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets9").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets9").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle9").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets9").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle9").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets9").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets9").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle9").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets9").value = "";} 	
	}
}
function Raffle10()
{
	if(document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle10"))
    {
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle10").checked == true) 
	    {
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets10").value = "1";
		    document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets10").focus()
	    }	
	    if (document.getElementById("ctl00_ctl00_cphChildContent_cphContent_chk_raffle10").checked == false) 
	    {document.getElementById("ctl00_ctl00_cphChildContent_cphContent_raffle_tickets10").value = "";} 	
	}
	else
	{
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle10").checked == true) 
	    {
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets10").value = "1";
		    document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets10").focus()
	    }	
	    if (document.getElementById("ctl00$ctl00$cphChildContent$cphContent$chk_raffle10").checked == false) 
	    {document.getElementById("ctl00$ctl00$cphChildContent$cphContent$raffle_tickets10").value = "";} 	
	}
}
function tutorHide() 
{
	if(document.getElementById('TableDescript').style.display == "none") 
	{ document.getElementById('TableDescript').style.display = "block"; }
	else 
	{ document.getElementById('TableDescript').style.display = "none"; }	
}
function HideDiv() 
{	
	document.getElementById('guest').style.display = "none";
	document.getElementById('guest1').style.display = "none";	
	partyHide("block");
}
function ShowDiv(div) 
{
	document.getElementById('guest').style.display = "block";
	document.getElementById('guest1').style.display = "block";
	//partyHide("none");
}
function tableDesc()
{
    if(document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlSomeTableCost'))
    {
	    var qty = document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlSomeTableCost').value;
	    document.getElementById('TableDescript').innerHTML = "";
	    if (qty == "20000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$20,000 Azteca</h2><b>($17,800 of this amount is tax deductible)</b><br />Includes two premier tables of ten at the Gala, priority recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "15000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$15,000 Maya</h2><b>($13,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "10000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$10,000 Tolteca</h2><b>($8,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation and program, as well as the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "5000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$5,000 Olmeca</h2><b>($4,025 of this amount is tax deductible)</b><br />Includes one preferred table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "2500")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$2,500 Zapoteca</h2><b>($1,900 of this amount is tax deductible)</b><br />Includes one table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	}
	else
	{
	    var qty = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_ddlSomeTableCost').value;
	    document.getElementById('TableDescript').innerHTML = "";
	    if (qty == "20000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$20,000 Azteca</h2><b>($17,800 of this amount is tax deductible)</b><br />Includes two premier tables of ten at the Gala, priority recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "15000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$15,000 Maya</h2><b>($13,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "10000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$10,000 Tolteca</h2><b>($8,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation and program, as well as the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "5000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$5,000 Olmeca</h2><b>($4,025 of this amount is tax deductible)</b><br />Includes one preferred table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "2500")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$2,500 Zapoteca</h2><b>($1,900 of this amount is tax deductible)</b><br />Includes one table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	}
}
function tableDesc1()
{
    if(document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlTableCost'))
    {
	    var qty = document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlTableCost').value;
	    document.getElementById('TableDescript').innerHTML = "";
	    if (qty == "20000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$20,000 Azteca</h2><b>($17,800 of this amount is tax deductible)</b><br />Includes two premier tables of ten at the Gala, priority recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "15000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$15,000 Maya</h2><b>($13,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "10000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$10,000 Tolteca</h2><b>($8,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation and program, as well as the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "5000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$5,000 Olmeca</h2><b>($4,025 of this amount is tax deductible)</b><br />Includes one preferred table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "2500")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$2,500 Zapoteca</h2><b>($1,900 of this amount is tax deductible)</b><br />Includes one table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	}
	else
    {
	    var qty = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_ddlTableCost').value;
	    document.getElementById('TableDescript').innerHTML = "";
	    if (qty == "20000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$20,000 Azteca</h2><b>($17,800 of this amount is tax deductible)</b><br />Includes two premier tables of ten at the Gala, priority recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "15000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$15,000 Maya</h2><b>($13,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "10000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$10,000 Tolteca</h2><b>($8,900 of this amount is tax deductible)</b><br />Includes one premium table of ten at the Gala, preferred recognition in the invitation and program, as well as the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "5000")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$5,000 Olmeca</h2><b>($4,025 of this amount is tax deductible)</b><br />Includes one preferred table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	    else if (qty == "2500")
	    {
		    document.getElementById('TableDescript').innerHTML = "<h2>$2,500 Zapoteca</h2><b>($1,900 of this amount is tax deductible)</b><br />Includes one table of ten at the Gala, recognition in the invitation, program, and the Forum and Foundation newsletters, and an exclusive gift";
	    }
	}
}
function tableGuest()
{
    if(document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlSomeTable'))
    {
	    var qty = document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlSomeTable').value;
	    if (qty == "0")
	    {
		    HideDiv();
	    }
	    else
	    {
		    ShowDiv();
	    }
	}
	else
	{
	    var qty = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_ddlSomeTable').value;
	    if (qty == "0")
	    {
		    HideDiv();
	    }
	    else
	    {
		    ShowDiv();
	    }
	}
}
function tableGuest1()
{
	if(document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlTable'))
	{
	    var qty = document.getElementById('ctl00$ctl00$cphChildContent$cphContent$ddlTable').value;
	    if (qty == "0")
	    {
		    HideDiv();
	    }
	    else
	    {
		    ShowDiv();
	    }
	}
	else
	{
	    var qty = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_ddlTable').value;
	    if (qty == "0")
	    {
		    HideDiv();
	    }
	    else
	    {
		    ShowDiv();
	    }
	}
}
function CopyValues1()
 {
	if (document.getElementById('same').checked == true) 
	{
	// copying
	//document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBname').value = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtname').value;
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBAddress').value = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtAddress').value;
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBCity').value = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtCity').value;
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_ddlBState').value = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_ddlState').value;
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBZip').value = document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtZip').value;
	}
	
	if (document.getElementById('same').checked == false) 
	{
	// clear
	//document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBname').value = "";
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBAddress').value = "";
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBCity').value = "";
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_ddlBState').value = "";
	document.getElementById('ctl00_ctl00_cphChildContent_cphContent_txtBZip').value = "";
	} 	
}