function FillType1(ddlControl1)
{	
	var typeString = "Please Select Type|Physically Challenged|Mentally Challenged|Blind|Deaf & Dumb|Old Aged|Rehabilation|Child Labour|Refugees|Cross Gender|Normal"
   document.getElementById(ddlControl1).options.length=0
	for(i=0;i<typeString.split("|").length;i++)
	{
        document.getElementById(ddlControl1).options[i]=new Option(typeString.split("|")[i])
        document.getElementById(ddlControl1).options[i].value=document.getElementById(ddlControl1).options[i].text;
    }
}

function FillNeedCategory(ddlControl)
{
	var needcatString = "Please Select Category|Individuals|Foundation|Orphanages|Institution|Welfare association|Ashram"
    document.getElementById(ddlControl).options.length=0
	for(i=0;i<needcatString.split("|").length;i++)
	{
        document.getElementById(ddlControl).options[i]=new Option(needcatString.split("|")[i])
        document.getElementById(ddlControl).options[i].value=document.getElementById(ddlControl).options[i].text;
        //alert(document.getElementById(ddlControl).options[i].text);
    }
}

function FillDonorCategory(ddlControl)
{
	var donorcatString = "Please Select Category|Individuals|Clubs/welfare association|Trust|Hospital|Ashram|Foundation|Institution|Temples"
    document.getElementById(ddlControl).options.length=0
	for(i=0;i<donorcatString.split("|").length;i++)
	{
        document.getElementById(ddlControl).options[i]=new Option(donorcatString.split("|")[i])
        document.getElementById(ddlControl).options[i].value=document.getElementById(ddlControl).options[i].text;
    }
}

function NeedDonateCategory(ddlControl)
{
	//var needdonString = "Please Select Need/Donate|Medical|Education|Artificial Limb|Food|Surgery|Vehicles|Self Employment|Property|Funds|Things|Medical Camps|Clothes|Blood|Eye|Human Organs|Sports|Marriage for Poor Girls|Hearing Aid|Sponsor"
	var needdonString = "Please Select Need/Donate|Medical|Education|Artificial Limb|Food|Surgery|Vehicles|Self Employment|Property|Funds|Things|Medical Camps|Clothes|Blood|Sports|Marriage for Poor Girls|Hearing Aid|Sponsor"
    document.getElementById(ddlControl).options.length=0
	for(i=0;i<needdonString.split("|").length;i++)
	{
        document.getElementById(ddlControl).options[i]=new Option(needdonString.split("|")[i])
        document.getElementById(ddlControl).options[i].value=document.getElementById(ddlControl).options[i].text;
    }
}

function validation_search()
{
	
	if(document.getElementById('needy').checked==true)
	{
		window.location.href="donator.php";
		//return false;
	}
	if(document.getElementById('donator').checked==true)
	{
		window.location.href="needy.php";
		//return false;
	}
	return false;
}