/*****************************************************************************************************/
/*                                                                                                   */
/*                                       'NEW COMMENT' CONTROL PANEL                                 */          
/*                                                                                                   */
/*****************************************************************************************************/
var NewCommentObject = new Object();

function initNewCommentPanel(){
	if (document.forms['newcomment_form'] == null){
		return;	
	}
	
	NewCommentObject.info = new NEWCOMMENT_GINFO(this);
	NewCommentObject.info.init();
	NewCommentObject.info.initCreate();
}


/*****************************************************************************************************/
/*                                                                                                   */
/*                                         FUNCTION VALIDATION                                       */          
/*                                                                                                   */
/*****************************************************************************************************/
function validateNewComment(){
	if (NewCommentObject.info != null){
		NewCommentObject.info.initServerValidate();
	}
}



function changeURL(){
	sec--;
	t=setTimeout("changeURL()",1000);
	document.getElementById("seconds").innerHTML = sec;
	
	if (sec == 0){ 
		var url = window.location.href;
		
		if (url.indexOf("#") == -1){
			newurl = url;	
		}
		else{
			newurl = url.substring(0,url.indexOf("#"));	
		}
		
		window.location.href = newurl;
	}
	
}