function w_open()
{
	url=w_open.arguments[0];
	if(w_open.arguments[1]){
		w=w_open.arguments[1];
	}
	else{
		w=screen.width-10;
	} 
	if(w_open.arguments[2]){
		var h=w_open.arguments[2];
	}
	else{
		h=screen.height-100;
	}
	if(w_open.arguments[3]){
		var ext=w_open.arguments[3];
	}
	else{
		var ext="jpg";
	}
	wn='wname'+Math.round(Math.random()*10000);
	settings='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no, left=150, top=150 ,width='+w+',height='+h;
	open(url, wn, settings);
}

function initFormMandatory(){
	ff=document.forms;
	for(i=0; i<ff.length; i++){
		f=ff[i];
		for(j=0; j<f.length; j++){
			el=f[j];
			set=el.parentNode.parentNode;
			if(set.className.indexOf('mandatory')>-1 && set.tagName=='DIV'){
				def=set.firstChild.nextSibling.tagName?set.firstChild.nextSibling:set.firstChild;
				if(def.tagName=='SPAN' && def.className=='def'){
					def.innerHTML=def.innerHTML+'<span>*</span>';
					def.className='def done';
				}
			}
		}
	}
}

