// WebWiz Core WebWiz - Version 1.0.001

function exec_function(strFunctionName){
	if(eval('typeof('+strFunctionName+')==\'function\'')){
		eval(strFunctionName+'()');
	}
}

function popup(strQueryString,strName,intWidth,intHeight){
	var popup_window=window.open('/popup.asp'+strQueryString,strName,'width='+intWidth+',height='+intHeight);
	popup_window.focus();
}

var objTimers=new Object;

function dropdown(menuItem,blnShow){
	if(typeof(menuItem)!='object'){
		menuItem=document.getElementById(menuItem);
	}
	
	if(menuItem){
		if(blnShow){
			if(objTimers[menuItem.id]){
				window.clearTimeout(objTimers[menuItem.id]);
				objTimers[menuItem.id]=undefined;
			}
			
			menuItem.style.visibility='visible';
		}else{
			objTimers[menuItem.id]=window.setTimeout('document.getElementById(\''+menuItem.id+'\').style.visibility=\'hidden\';',150);
		}
	}
}

function gedit(strTagID){
	return document.getElementById(strTagID);
}

function notempty(strTagID){
	var arrTagID=strTagID.split(' ');
	
	for(var n=0;n<arrTagID.length;n++){
		if(gedit(arrTagID[n])){
			if(gedit(arrTagID[n]).value==''){
				return false;
			}
		}else{
			return false;
		}
	}
	
	return true;
}

