function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}

function DoSmilie(addSmilie) { 

            var addSmilie;     
            var revisedMessage;     
            var currentMessage = document.form.message.value;     
            revisedMessage = currentMessage+addSmilie;     
            document.form.message.value=revisedMessage;     
            document.form.message.focus();     
            return;     
      }   

function set_style_forum(txt) { 
            var txt;  
            var revisedMessage;     
            var currentMessage = document.form.message.value;
            revisedMessage = currentMessage+txt;     
            document.form.message.value=revisedMessage;     
            document.form.message.focus(); 
            return;     
      }   
	  
function set_style_articles(txt) { 
            var txt;  
            var revisedMessage;     
            var currentMessage = document.form.ingress.value;
            revisedMessage = currentMessage+txt;     
            document.form.ingress.value=revisedMessage;     
            document.form.ingress.focus(); 
            return;     
      }  
	  function set_style_articles2(txt) { 
            var txt;  
            var revisedMessage;     
            var currentMessage = document.form.content.value;
            revisedMessage = currentMessage+txt;     
            document.form.content.value=revisedMessage;     
            document.form.content.focus(); 
            return;     
      }  
	  
function set_i1(txt) { 
	document.form.i1.value=txt;
}  
function set_i2(txt) { 
	document.form.i2.value=txt;
}  

function validate_new_message(a){
	
	var illegalChars= />/;
	var illegalChars2= /</;
	x=document.form;
	input1=x.name.value;
	input2=x.message.value;
	input3=x.profileplayerid.value;
	
	input4=x.name.value;
	input5=x.name.value;
	input6=x.email.value;
	input7=x.email.value;
	input8=x.url.value;
	input9=x.url.value;
	input10=x.location.value;
	input11=x.location.value;
	input12=x.message.value;
	input13=x.message.value;
	
	if (input1.length<1 || input2.length<1)
	 {
		 alert("Missing Entry");
		 return false;
	 }
	 	if (a == '1' && input3.length<1)
	 {
		 alert("You are not logged in. Please tick the 'NO' button or log in");
		 return false;
	 }
	 
	if (input4.match(illegalChars) || input4.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input5.match(illegalChars) || input5.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input6.match(illegalChars) || input6.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input7.match(illegalChars) || input7.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input8.match(illegalChars) || input8.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input9.match(illegalChars) || input9.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input10.match(illegalChars) || input10.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input11.match(illegalChars) || input11.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input12.match(illegalChars) || input12.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	if (input13.match(illegalChars) || input13.match(illegalChars2)) {
	   alert("You can not use HTML tags like '>' or '<'");
	   return false;
	}
	 


}

function check(a,b,c,d)
{
	document.form.name.value=a;
	document.form.email.value=b;
	document.form.url.value=c;
	document.form.userprofile2.value=d;
}

function validate_new_game(){
	
	x=document.form;
	input1=x.awayteam.value;
	input2=x.hometeam.value;
	input3=x.team_id.value;
	input4=x.game_type.value;
	input5=x.day.value;
	input6=x.month.value;
	input7=x.year.value;
	input8=x.hour.value;
	input9=x.minute.value;
	input10=x.season.value;
		
	if (input10.length<1 || input1.length<1 || input2.length<1 || input3.length<1 || input4.length<1 || input5.length<1 || input6.length<1 || input7.length<1 || input8.length<1 || input9.length<1)
	 {
		 alert("Missing Entry");
		 return false;
	 }
	else{
		return true
	}
}

function validate_module(txt){
	
	x=document.form;
	input1=x.current_module.value;

	if (input1.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}
function validate_writecorner(txt){
	
	x=document.form;
	input1=x.headline.value;
	input2=x.content.value;

	if (input1.length<1 || input2.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_readersletter(txt){
	
	x=document.form;
	input1=x.headline.value;
	input2=x.name.value;
	input3=x.email.value;
	input4=x.content.value;

	if (input1.length<1 || input2.length<1 || input3.length<1 || input4.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_corner(txt){
	
	x=document.form;
	input1=x.headline.value;
	input4=x.content.value;

	if (input1.length<1 || input4.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_article(txt){
	
	x=document.form;
	input1=x.ingress.value;
	input2=x.headline.value;
	input3=x.cat_id.value;
		
	if (input1.length<1 || input2.length<1 || input3.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_link(txt){
	
	x=document.form;
	input1=x.linkk.value;
	input2=x.description.value;
	input3=x.category.value;
		
	if (input1.length<1 || input2.length<1 || input3.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_edit_game(){
	
	x=document.form;
	input1=x.awayteam.value;
	input2=x.hometeam.value;
	input3=x.team_id.value;
	input4=x.game_type.value;
	input5=x.day.value;
	input6=x.month.value;
	input7=x.year.value;
	input8=x.hour.value;
	input9=x.minute.value;
	input10=x.season.value;
	input11=x.goals_for.value;
	input12=x.goals_against.value;
		
	if (input11.length<1 || input12.length<1 || input10.length<1 || input1.length<1 || input2.length<1 || input3.length<1 || input4.length<1 || input5.length<1 || input6.length<1 || input7.length<1 || input8.length<1 || input9.length<1)
	 {
		 alert("Missing Entry");
		 return false;
	 }
	else{
		return true
	}
}

function validate_email(){
	
	x=document.form;
	input1=x.email.value;
	input2=x.name.value;
	input3=x.inquiry.value;

		
	if (input1.length<1 || input2.length<1 || input3.length<1)
	 {
		 alert("Please fill in all the fields");
		 return false;
	 }
	else{
		return true
	}
}

function validate_sendemail(txt){
	
	x=document.form;
	input1=x.message.value;
	input2=x.subject.value;
		
	if (input1.length<1 || input2.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_sendemail2(txt){
	
	x=document.form;
	input1=x.message.value;
	input2=x.name.value;
	input3=x.email.value;
		
	if (input1.length<1 || input2.length<1 || input3.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_player(txt){
	
	x=document.form;
	input1=x.first_name.value;
	input2=x.last_name.value;
	input3=x.username.value;

	if (input1.length<1 || input2.length<1 || input3.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_settings(txt){
	
	x=document.form;
	input1=x.team_name.value;
	input2=x.site_name.value;
	input3=x.no_messages.value;
	input4=x.no_archive.value;
	input5=x.no_fixtures.value;
	input6=x.no_players.value;
	input7=x.no_readersletter.value;
	input8=x.admin_email.value;
	input9=x.corner_name.value;
	input10=x.set_locale.value;

	if (input1.length<1 || input2.length<1 || input3.length<1 || input4.length<1 || input5.length<1 || input6.length<1 || input7.length<1 || input8.length<1 || input9.length<1 || input10.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_colors(txt){
	
	x=document.tcp_test;
	input1=x.body_bgcolor.value;
	input2=x.body_text.value;
	input4=x.body_text_size.value;
	input5=x.body_link.value;
	input6=x.body_vlink.value;
	input7=x.body_alink.value;
	input8=x.body_hlink.value;
	input9=x.table_background_color.value;
	input10=x.table_lines.value;
	input11=x.menu_header.value;
	input12=x.menu_header_font_color.value;
	input13=x.menu_header2.value;
	input14=x.menu_header_font_color2.value;
	input15=x.noticeboard.value;
	input16=x.small_fonts.value;
	input17=x.headline.value;
	input18=x.headline_xs.value;
	input19=x.headline_xxs.value;
	input20=x.italic.value;
	

		
	if (input1.length<1 || input2.length<1 || input4.length<1 || input5.length<1 || input6.length<1 || input7.length<1 || input8.length<1 || input9.length<1 || input10.length<1 || input11.length<1 || input12.length<1 || input13.length<1 || input14.length<1 || input15.length<1 || input16.length<1 || input17.length<1 || input18.length<1 || input19.length<1 || input20.length<1)
	 {
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function sjekke_venue(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_venue&id="+txt;
}
else
{
return false;
}
}

function sjekke_readersletter(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_readersletter&id="+txt;
}
else
{
return false;
}
}

function sjekke_forum_admin(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_forum&id="+txt;
}
else
{
return false;
}
}



function sjekke_team(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_team&id="+txt;
}
else
{
return false;
}

}

function sjekke_opponent(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_opponent&id="+txt;
}
else
{
return false;
}

}

function sjekke_gametype(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_gametype&id="+txt;
}
else
{
return false;
}

}

function sjekke_galleryimage(txt,sure,where){
	var name=confirm(sure)
if (name==true){
window.location="admin_actions.php?req=delete_galleryimage&imgdir="+where+"&file="+txt;
}
else{
return false;
}
}


  function PopupPic(sPicURL) { 
     window.open( "popup.htm?"+sPicURL, "",  
     "resizable=no,HEIGHT=1,WIDTH=1"); 
   } 

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_imageMenu1(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_imageMenu2(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function sjekke_cat(txt,sure,what,where){
	var name=confirm(sure)
	if (name==true){
		window.location="admin_actions.php?req="+ what +"&cat_id="+txt;
	}
	else{
		return false;
	}
}

function sjekke_word(txt,sure,what,where){
	var name=confirm(sure)
	if (name==true){
		window.location="admin_actions.php?req="+ what +"&id="+txt;
	}
	else{
		return false;
	}
}

function sjekke_game(txt,sure,what,where)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req="+ what +"&game_id="+txt;
}
else
{
window.location="admin_module.php?req="+ where +"";
}

}

function sjekke_image(file,txt,sure,view)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_image&view="+view+"&file="+file+"&id="+txt;
}
else
{
return false;
}

}

function sjekke_corner(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_corner&id="+txt;
}
else
{
return false;
}

}

function sjekke_player(txt,sure)
{
 var name=confirm(sure)
if (name==true)
{
window.location="admin_actions.php?req=delete_player&player_id="+txt;
}
else
{
window.location="admin_module.php?req=players";
}

}




function sjekke_article(txt,sure,what,where){
	var name=confirm(sure)
	if (name==true){
		window.location="admin_actions.php?req="+ what +"&article_id="+txt;
	}
	else{
		window.location="admin_module.php?req="+ where +"";
	}
}

function sjekke_gallery(txt,sure){
	var name=confirm(sure)
	if (name==true){
		window.location="admin_actions.php?req=delete_gallery&dir="+txt;
	}
	else{
		return false;
	}
}








function sjekke_link(txt,sure,what,where){
	var name=confirm(sure)
	if (name==true){
		window.location="admin_actions.php?req="+ what +"&id="+txt;
	}
	else{
		return false;
	}
}


function open_win(page){
		window.open(page,"new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=default, resizable=no, copyhistory=no, width=400, height=200");
	}
	
function put()
{
	
txt=document.forms[0].myList.options[document.forms[0].myList.selectedIndex].text

if(txt == "Red-Red"){
	document.forms[0].body_bgcolor.value="CC3300";
	document.forms[0].body_text.value="2C2C2C";
	document.forms[0].body_link.value="CC3300";
	document.forms[0].body_vlink.value="CC3300";
	document.forms[0].body_alink.value="CC3300";
	document.forms[0].body_hlink.value="585858";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="2C2C2C";
	document.forms[0].menu_header.value="CC3300";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="CC3300";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Red-White"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="2C2C2C";
	document.forms[0].body_link.value="CC3300";
	document.forms[0].body_vlink.value="CC3300";
	document.forms[0].body_alink.value="CC3300";
	document.forms[0].body_hlink.value="585858";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="2C2C2C";
	document.forms[0].menu_header.value="CC3300";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="CC3300";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Red-Black"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="2C2C2C";
	document.forms[0].body_link.value="CC3300";
	document.forms[0].body_vlink.value="CC3300";
	document.forms[0].body_alink.value="CC3300";
	document.forms[0].body_hlink.value="585858";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="2C2C2C";
	document.forms[0].menu_header.value="000000";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="CC3300";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Black-White"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="2C2C2C";
	document.forms[0].body_link.value="666666";
	document.forms[0].body_vlink.value="666666";
	document.forms[0].body_alink.value="666666";
	document.forms[0].body_hlink.value="888888";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="2C2C2C";
	document.forms[0].menu_header.value="000000";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="EEEEE0";
	document.forms[0].menu_header_font_color2.value="000000";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Black-Black"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="2C2C2C";
	document.forms[0].body_link.value="666666";
	document.forms[0].body_vlink.value="666666";
	document.forms[0].body_alink.value="666666";
	document.forms[0].body_hlink.value="888888";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="2C2C2C";
	document.forms[0].menu_header.value="000000";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="000000";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "White-White"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="333333";
	document.forms[0].body_link.value="555555";
	document.forms[0].body_vlink.value="555555";
	document.forms[0].body_alink.value="555555";
	document.forms[0].body_hlink.value="EEEEE0";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="2C2C2C";
	document.forms[0].menu_header.value="EEEEE0";
	document.forms[0].menu_header_font_color.value="000000";
	document.forms[0].menu_header2.value="EEEEE0";
	document.forms[0].menu_header_font_color2.value="000000";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Blue-Blue"){
	document.forms[0].body_bgcolor.value="F8F8F8";
	document.forms[0].body_text.value="000000";
	document.forms[0].body_link.value="0000CC";
	document.forms[0].body_vlink.value="0000CC";
	document.forms[0].body_alink.value="0000CC";
	document.forms[0].body_hlink.value="EEEEE0";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="000000";
	document.forms[0].menu_header.value="0000CC";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="0000CC";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Blue-White"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="000000";
	document.forms[0].body_link.value="0000CC";
	document.forms[0].body_vlink.value="0000CC";
	document.forms[0].body_alink.value="0000CC";
	document.forms[0].body_hlink.value="EEEEE0";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="000000";
	document.forms[0].menu_header.value="0000CC";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="EEEEE0";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Green-Green"){
	document.forms[0].body_bgcolor.value="F8F8F8";
	document.forms[0].body_text.value="000000";
	document.forms[0].body_link.value="009900";
	document.forms[0].body_vlink.value="009900";
	document.forms[0].body_alink.value="009900";
	document.forms[0].body_hlink.value="EEEEE0";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="000000";
	document.forms[0].menu_header.value="009900";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="009900";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Green-Yellow"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="000000";
	document.forms[0].body_link.value="009900";
	document.forms[0].body_vlink.value="009900";
	document.forms[0].body_alink.value="009900";
	document.forms[0].body_hlink.value="EEEEE0";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="000000";
	document.forms[0].menu_header.value="009900";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="FFCC00";
	document.forms[0].menu_header_font_color2.value="000000";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Green-White"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="000000";
	document.forms[0].body_link.value="009900";
	document.forms[0].body_vlink.value="009900";
	document.forms[0].body_alink.value="009900";
	document.forms[0].body_hlink.value="EEEEE0";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="000000";
	document.forms[0].menu_header.value="009900";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="EEEEE0";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
else if(txt == "Yellow-Red"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="000000";
	document.forms[0].body_link.value="CC3300";
	document.forms[0].body_vlink.value="CC3300";
	document.forms[0].body_alink.value="CC3300";
	document.forms[0].body_hlink.value="585858";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="000000";
	document.forms[0].menu_header.value="CC3300";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="CC3300";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="FFFF99";
	document.forms[0].italic.value="989898";
}

else if(txt == "Red-White"){
	document.forms[0].body_bgcolor.value="FFFFFF";
	document.forms[0].body_text.value="2C2C2C";
	document.forms[0].body_link.value="CC3300";
	document.forms[0].body_vlink.value="CC3300";
	document.forms[0].body_alink.value="CC3300";
	document.forms[0].body_hlink.value="585858";
	document.forms[0].table_background_color.value="FFFFFF";
	document.forms[0].table_lines.value="2C2C2C";
	document.forms[0].menu_header.value="CC3300";
	document.forms[0].menu_header_font_color.value="FFFFFF";
	document.forms[0].menu_header2.value="CC3300";
	document.forms[0].menu_header_font_color2.value="FFFFFF";
	document.forms[0].notiseboard.value="F8F8F8";
	document.forms[0].italic.value="989898";
}
}


function validate_cat(txt){
	x=document.form;
	input1=x.name.value;
	if (input1.length<1){
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_word(txt){
	x=document.form;
	input1=x.filter_word.value;
	input2=x.filter_replace.value;
	if (input1.length<1 || input2.length<1){
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_uploadarray(txt){

	x=document.form;
	input1=x.category.value;

	if (input1.length<1){
		 alert(txt);
		 return false;
	 }
	else{
		return true
	}
}

function validate_upload(txt){
	
	
	x=document.form1;
	input1=x.category.value;
	input2=x.file.value;
	input3=x.desc.value;
	input4=x.code.value;
	input5=x.linkk.value;
	
	if (input1.length<1 || input2.length<1 || input3.length<1){
		 alert(txt);
		 return false;
	 }
	if(input1 == "smilies" &&  input4.length<1){
		alert(txt);
		return false;
	}
	if(input1 == "smallads" &&  input5.length<1){
		alert(txt);
		return false;
	}
	else{
		return true
	}
}