	function ajaxPopulateTech(){
		description 	= $('project_description').value;
		if($('project_description').value != $('des_hidden').value){	
			new Ajax.Updater('technologies', '/ajax/populate', {
				method:'post',
				onResponse: highliteNot(),
				postBody:'description=' + description + '&deleted=' + $('delete_tech').value } );
		}
		$('des_hidden').value = $('project_description').value;
	}
	function highliteNot(){
		if(Element.visible('technologies') != true){
			Element.show('technologies');
			new Effect.Highlight('technologies');	
		}
	}
	function addTag(){
		tag = $('tag').value;
		
		//
		if(tag != '' ){
			new Insertion.Bottom('tags', '<span class="tag_el">&nbsp;' + tag + '</span><img src="/images/del.gif" border="0" onclick="deleteTag(this);" style="cursor: pointer;">');
				$('tag').value = '';
		}
		Element.show('tags');
	}
	function deleteTag(element){
		siblings = $(element).previousSiblings();
		lastEl = siblings.first();
			
		$(lastEl).remove();
		$(element).remove();
	}
	
	function getTags(){
		tags_array = $('tags').getElementsByClassName('tag_el');
		tagLen = tags_array.length;
		
		for(i=0; i <= tagLen-1; i++){
			alert(tags_array[i].innerHTML);
		}
		
	}
	function clear(element){
		if( $(element).value = 'Ex( Store, Database, PHP, Video)' ){
			$(element).value = '';
		}
	}
	function removeTech(element){
		removeEl = $(element).up(1);
		$('delete_tech').value = $('delete_tech').value + Element.previous($(element).up(0)).innerHTML + ':';
		
		//alert(removeEl.innerHTML);
		$(removeEl).remove();
		
	}
	
	function init(){
		$('delete_tech').value='';
		window.setInterval('ajaxPopulateTech();', 1600);
	}
	function submitMe(){
		selectedTechnologies = $('technologies').getElementsByClassName('technology_box');
		if( selectedTechnologies.length != 0 ){
			for(i=0; i<= selectedTechnologies.length -1; i++){
				$('select_tech').value += selectedTechnologies[i].innerHTML + ':';
			}
		}
		/**
		*@todo Error Checking
		*/
		$('postForm').submit();
		
	}
