function manageSubNav(id) {

for(var i=0;i<5;i++){
	if(i==id){
		var elem = document.getElementById('sub-nav-div-id-'+i);
		elem.style.display = 'block';
	}else{
		var elem = document.getElementById('sub-nav-div-id-'+i);
		elem.style.display = 'none';
	}

}


}


function showAnswer(list) {
	
	var answerList = document.getElementById('faq-answer-ul-id');
	var answerBoxes = answerList.getElementsByTagName('li');
	
	for(var no=0;no<answerBoxes.length;no++){
		
			answerBoxes[no].style.display = 'none';
		
	}

	var answerBox = document.getElementById('faq-answer-li-id-'+list);
	
	answerBox.style.display = 'block';
}


function showPenalty(no) {

	if(no == '0') {
		var hide = document.getElementById('main-content-penalty-amount-div-id-1');
		hide.style.display = 'none';
		var show = document.getElementById('main-content-penalty-amount-div-id-0');
		show.style.display = 'block';
	}else {
		var hide = document.getElementById('main-content-penalty-amount-div-id-0');
		hide.style.display = 'none';
		var show = document.getElementById('main-content-penalty-amount-div-id-1');
		show.style.display = 'block';
	}

}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
	
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


function position(id){

var bodyW = document.body.clientWidth;
var bodyH = document.body.clientHeight;

var div = document.getElementById(id);
	
var divW = parseInt(div.style.width);
var divH = parseInt(div.style.height);



var top = (bodyH/2 - divH/2);
var left = (bodyW/2 - divW/2);



var topPer = Math.round(top*100/bodyH);
var leftPer = Math.round(left*100/bodyW);


topPer = topPer-1;


topPer = topPer+'%';
leftPer = leftPer+'%';


div.style.top = topPer;
div.style.left = leftPer;


}



