//Purpose : This function is made to highlight login box.
// Input parameter is :
//Parameter 1 : BoxID is the id of the username field that comes at top. 
function highlight_login_box(BoxID){
	var objUname = document.getElementById(BoxID);
	var i, timeout = 1600, flash_speed = 200;

	if (objUname){
		objUname.focus();
		objUname.select();

		for (i = 0; i < timeout; i += 2 * flash_speed){
			window.setTimeout(function() { objUname.style.backgroundColor ='#F3F781'}, i);
			window.setTimeout(function() { objUname.style.backgroundColor =''},i + flash_speed);
		}
	}
	return false;
}

//  It makes field blank.
function make_blank()
{
	if(document.PostTopic.name.value == 'Unregistered'){
	document.PostTopic.name.value ="";
	}
}

// It fills box with Unregistered if box is blank.
function box_fill(){
	if(document.PostTopic.name.value == '')	{
		document.PostTopic.name.value = 'Unregistered';
	}
}
