descrip = function(name)
{
		var formstr = '<form name="fmfrnd" method="GET">'+'<div id="terms" style="text-align:center; height:400px; overflow:auto;"><img src="images/' + name +'"></div>'+'</form>';




	jqistates = {
		state0: {
			html: formstr,
			focus: 1,
			buttons: { Close: false },
			submit: function(v, m, f){
				var e = "";
				m.find('.errorBlock').hide('fast',function(){ jQuery(this).remove(); });
				if (v) {
					if (e == "") {
						//do nothing
					}	
					else{
						jQuery('<div class="errorBlock" style="display: none;">'+ e +'</div>').prependTo(m).show('slow');
					}
					return false;
				}
				else return true;
			}
		},
		state1: {
			html: '<div id="response" style="text-align:center;"></div>',
			focus: 1,
			buttons: { Back: false, Done: true },
			submit: function(v,m,f){
				if(v)
					return true;
					
				jQuery.prompt.goToState('state0');
				return false;
			}
		}
	};
	
	$.prompt(jqistates);
		  
}


