// JavaScript Document

/*
Page: linklinktype.js ()
Version: 1.0.0
Project: Equiworld.org
Author: Peter Asprey
Copyright: Copyright Peter Asprey 2010
Created: 23rd Feb 2010
Inputs: None
Output: None
Purpose: Populated form ew_form with link type data from linktype.php JSON
Notes: All Equiworld.Org Functions, Classes and Vars prefixed with ew_
*/


function ew_floodlinklinktype()
{

	$.getJSON("json/linktype.php",
        function(data){
			ew_linklinktype(data);
			ew_link_status = true;
			ew_link_data = data;
         })
}

function ew_linklinktype(ew_data)
{
        	var ew_i = 0;
			var ew_n = 0;
		    var ew_select = document.getElementById("ew_form_T");
			ew_select[0] = new Option("Personal Home Pages - Equine","11");
			ew_n = ew_data.length;
		    while(ew_i < ew_n){
					ew_select[ew_i+1] = new Option(ew_data[ew_i].Description,ew_data[ew_i].Type_Key);
					ew_i++;
				}
}

