function showhide(id,secdiv,loaderdiv)
{
	if (document.getElementById(id).style.display == 'none')
	{	
		document.getElementById(id).style.display='';
		if (loaderdiv != '')
		{
			document.getElementById(loaderdiv).style.display='';
			if (id == 'alphabox')
				setTimeout("offloadder()",1000);
			else
				setTimeout("offloadder1()",1000);
		}		
		//document.getElementById(id).style.display='';
	}	
	else {
		document.getElementById(id).style.display='none';
		if (secdiv != '')
		{
			document.getElementById(secdiv).style.display='none';
		}		
	}
}

function showhideNew(id,secdiv,loaderdiv)
{
	
	if (document.getElementById(id).style.display == 'none')
	{	
		if(document.getElementById('loadCheck').value == 'N')
		{
			xajax_getDivListing();
		}
		else
		{
			document.getElementById(id).style.display='';
		}
		document.getElementById(id).style.display='';
		if (loaderdiv != '')
		{
			//document.getElementById('loader1').style.display='';
			if (id == 'alphabox')
				setTimeout("offloadder()",1000);
			else
				setTimeout("offloadder1()",1000);
		}
	}	
	else {
		document.getElementById(id).style.display='none';
		if (secdiv != '')
		{
			document.getElementById(secdiv).style.display='none';
		}	
	}
}

function offloadder(secdiv,loaderdiv)
{
	document.getElementById('loader1').style.display='none';
	document.getElementById('artist').style.display='';
}

function offloadder1(secdiv,loaderdiv)
{
	document.getElementById('loader2').style.display='none';
	document.getElementById('pricediv').style.display='';
}

function MM_openBrWindow(theURL,winName,features) 
{ 
  window.open(theURL,winName,features);
}

function checkform(theform)
{

	theControl="vchEmail";
	theMessage="email";
	theNumeric="";
	theEmail="Y";
	theURL="";
	theConfirmPassword="";
	thebadstuff="";
	theinteger="";
	thepercent="";
	thesize="";
	thedecimal="";
	theimage="";
	theempty="Y";

	themin="";
	themax="";
	thecheckboxlength="";
	thephoneno="";

	if(!theValidator(theform,theControl,theMessage,theNumeric,theEmail,theURL,theConfirmPassword,thebadstuff,theinteger,thepercent,thesize,thedecimal,theimage,theempty,themin,themax,thecheckboxlength,thephoneno))
	  return false;
}
