function init(){
if((navigator.appVersion).search("IE 6.0")>0){
		document.getElementById("right_disscussion_panel").style.backgroundImage="none";
		document.getElementById("right_downloads_panel").style.backgroundImage="none";
	}
}
function addcomment() {
	$D.get('commentboxmsg').innerHTML='';
	$D.get('commentbox').style.cssText='width:505px;margin:5px auto; display:block;';
	$D.get('commentboxmsg').style.cssText='display:none;';
}

function addcommentsubmit(type) {
	var r=YAHOO.util.Connect.asyncRequest('POST','/urCOMMENTS/addComment',{success:addcommentdone},
		'item_id='+encodeURIComponent($D.get('entry_id').value)+'&type='+type+'&comment='+
		encodeURIComponent($D.get('commenttext').value));
}
function addcommentcancel() {
	$D.get('commenttext').value='';
	$D.get('commentbox').style.cssText='display:none;';
}

function addcommentdone(o) {
	$D.get('commentbox').style.cssText='display:inline;';
	$D.get('commentboxmsg').style.cssText='display:inline;';
	var resp=YAHOO.lang.JSON.parse(o.responseText);
	if (typeof resp.error != 'undefined') $D.get('commentboxmsg').innerHTML=resp.error;
	else {
		$D.get('commentscontent').innerHTML=resp;
		$D.get('commenttext').value='';
	}
	$D.get('commentbox').style.cssText='display:none;';
	$D.get('b_commentsubmit').disabled=false;
}

function validate_article(form,fldname,fldid){
	var err=0;
	with(form){
		if(isEmpty(elements[fldname].value)){
			writeError(elements[fldname],REQUIRED_comment);
			err=1;
		}else{
			if(elements[fldname].value.length > 5000){
			 	errormessage = "Please enter comments of length less than 5000 characters.";
			 	writeError(elements[fldname],errormessage);
				err=1;
			}
		}
		if(err==1)
			return false;
		else
			return true;
	}
	return true;
}