	function move_box(an, box) {
	  var cleft = 30;
	  var ctop = -50;
	  var obj = an;
	  
	  while (obj.offsetParent) {
		cleft += obj.offsetLeft;
		ctop += obj.offsetTop;
		obj = obj.offsetParent;
	  }
	  
	  box.style.left = cleft + 'px';
	  ctop += an.offsetHeight + 8;
	  
	  if (document.body.currentStyle && document.body.currentStyle['marginTop']) {
			ctop += parseInt(
			document.body.currentStyle['marginTop']);
	  }
	  
	  box.style.top = ctop + 'px';
	
	};

	function show_hide_box(an, width, height, borderStyle) {
		var href = an.href;
		var boxdiv = document.getElementById(href);
		
		if (boxdiv != null) {
		if (boxdiv.style.display == 'none') {
			move_box(an, boxdiv);
			boxdiv.style.display = 'block';
		} else
			boxdiv.style.display = 'none';
		return false;
		}
	
		boxdiv = document.createElement('div');
		boxdiv.setAttribute('id', href);
		boxdiv.style.display = 'block';
		boxdiv.style.position = 'absolute';
		boxdiv.style.width = width + 'px';
		boxdiv.style.height = height + 'px';
		boxdiv.style.border = borderStyle;
		boxdiv.style.backgroundColor = '#FFD204';
		
		var closeQbox = document.createElement('div');
		closeQbox.style.left = '230px';
		closeQbox.style.top = '-5px';
		closeQbox.style.position = 'absolute';
		closeQbox.innerHTML = '<img src="../site_images/page_pics/close.gif" width="30" height="90">';

	  	var contents = document.createElement('iframe');
		contents.scrolling = 'auto';
		contents.frameBorder = '0';
		contents.style.width = width + 'px';
		contents.style.height = height + 'px';
		contents.src = href;
		
		boxdiv.appendChild(closeQbox);
		boxdiv.appendChild(contents);
		document.body.appendChild(boxdiv);
		move_box(an, boxdiv);
		
		boxdiv.onclick = function(){
			if (boxdiv.style.display == 'block') {
				boxdiv.style.display = 'none';
			
			}
		
		};
		
		
		return false;
	
	};
	

	
	//////////////////////Show Hide Categories
	
	
	function showHideLayer(){
		interval = setInterval("Layer()",1);
	}
	
	function Layer(){
	
		var contentdiv = document.getElementById("individual");
		var contentdiv2 = document.getElementById("business");
		//document.body.appendChild(contentdiv);
		//document.body.appendChild(contentdiv2);
		
		if(document.nominationForm.checkValOne.checked == true){
			contentdiv.style.display = 'block';	
			contentdiv2.style.display = 'none';	
		}
		
		if(document.nominationForm.checkValTwo.checked == true){
			contentdiv2.style.display = 'block';	
			contentdiv.style.display = 'none';		
		}
	};
	
	function stopInt(){
		clearInterval(interval);
	};
	
	
	
	
	
	




