// mezők kitöltöttségének ellenőrzése

function checkInput() {

  var errorMsg = new Array('Please fill in the "Link text" field!',
  	  		   	 	 	   'Please fill in the "Link URL" field as well!',
						   'You need to put a reciprocal link to your site that points to our site first!\n\nIf you may have not done so, please return to this page after putting the reciprocal link to your site!\n\nIf you have already put a reciprocal link to your links page, please fill in the "Reciprocal link" field as well!',
						   'Please write a few sentences about your site, so that visitors would know why to click on your link!',
						   'Please select the category that suits your site the best!\n\nIf there is no one category you like, please select one anyway, and then write your desired category in the "Comment" field!',
						   'Please fill in your e-mail address as well!');

  if(document.new_link.link_text.value == "") {alert(errorMsg[0]); document.new_link.link_text.focus(); return false;}
  if(document.new_link.link_url.value == "http://") {alert(errorMsg[1]); document.new_link.link_url.focus(); return false;}
  if(document.new_link.back_link.value == "http://") {alert(errorMsg[2]); document.new_link.back_link.focus(); return false;}
  if(document.new_link.link_desc.value == "") {alert(errorMsg[3]); document.new_link.link_desc.focus(); return false;}
  if(document.new_link.link_cat.value == "0") {alert(errorMsg[4]); document.new_link.link_cat.focus(); return false;}
  if(document.new_link.offer_email.value == "") {alert(errorMsg[5]); document.new_link.offer_email.focus(); return false;}

}


