
function setctr(pst)
{
	for(var i=0;i<document.merchant.country.options.length;i++)
		if(document.merchant.country.options[i].value==pst)
			document.merchant.country.options[i].selected = true;
}

function setctrs(pst)
{
	for(var i=0;i<document.merchant.business_stcountry.options.length;i++)
		if(document.merchant.business_stcountry.options[i].value==pst)
			document.merchant.business_stcountry.options[i].selected = true;
}

function setctrind(pst)
{
	for(var i=0;i<document.merchant.business_industry.options.length;i++)
		if(document.merchant.business_industry.options[i].value==pst)
			document.merchant.business_industry.options[i].selected = true;
}

function setctrscl(pst)
{
	for(var i=0;i<document.merchant.business_scale.options.length;i++)
		if(document.merchant.business_scale.options[i].value==pst)
			document.merchant.business_scale.options[i].selected = true;
}


function setctrstate(pst)
{
	for(var i=0;i<document.merchant.state.options.length;i++)
		if(document.merchant.state.options[i].value==pst)
			document.merchant.state.options[i].selected = true;
}



//-----------------------------------------------------------------
function hideLoadingPage() 
{
	if (document.getElementById) 
	{  // DOM3 = IE5, NS6
	document.getElementById('ikoboloader').style.visibility = 'hidden';
	}
	else 
	{
		if (document.layers) 
		{  // Netscape 4
		document.ikoboloader.visibility = 'hidden';
		}
		else 
		{  // IE 4
		document.all.ikoboloader.style.visibility = 'hidden';
		}
	}
}

var d_load = false;
now_Date = new Date();
Month_now = now_Date.getMonth();
Year_now  = now_Date.getFullYear();
//----------------------------------------------------------------------

function loadDate()
	{
		if(d_load==false)
		{
	             getMonths();
		     getYears();
		     getDays();
        	     d_load=true;
	        }
	}

//--------------------------------------------------------------------
function getDays()
	{
		var day = 1;
		
		aday = new Option;
		aday.value = 0;
    	        aday.text = "Day";
		document.merchant.day.options[0]=aday;
		for(var y=day,i=1; y<day+31; ++y, ++i)
			{
        	aday = new Option;
	        aday.value = y;
    	        aday.text = y;
        	document.merchant.day.options[i]=aday;
        	    	}
		document.merchant.day.options[0].selected = true
		
	}
//--------------------------------------------------------------------
	
function getMonths()
	{
	
		var months = new Array("Month","January","February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
		
		for(var i=0; i<13; ++i)
		{
	   		newOpt = new Option;
		    	newOpt.value = i;
		    	newOpt.text = months[i];
			document.merchant.month.options[i] = newOpt;
		}
		
		document.merchant.month.options[0].selected = true
	}

//--------------------------------------------------------------------

function getYears()
	{
		var year = 1900;
		
		aYear = new Option;
		aYear.value = 0;
    	        aYear.text = "Year";
		document.merchant.year.options[0]=aYear;
		for(var y=year,i=1; y < year+86; ++y, ++i)
			{
        	aYear = new Option;
	        aYear.value = y;
    	        aYear.text = y;
        	document.merchant.year.options[i]=aYear;
        	    	}
		document.merchant.year.options[0].selected = true
		
	}

//--------------------------------------------------------------------

function setctr(pst)
{
	for(var i=0;i<document.merchant.country.options.length;i++)
		if(document.merchant.country.options[i].value==pst)
			document.merchant.country.options[i].selected = true;
			
		
		}

