

var NS4 = (document.layers) ? true : false;


function long_enuf(string_to_test,val){
	// this function copyright 2001 Dan Schwarzlander
	if (string_to_test.length >= val) return true;
	else { return false;}
}

function matching_strings(str1,str2){
	// this function copyright 2001 Dan Schwarzlander
	if (str1 == str2) return true;
	else { return false;}
}

function all_safe_chars(str1){
	// this function copyright 2001 Dan Schwarzlander
	for (i=0; i <= str1.length; i++)
		{
		if ((str1.charCodeAt(i) < 40) || (str1.charCodeAt(i) > 122)) 
			{return false; break; }
		}
		return true;
}

function isNum(str1){
	// this function copyright 2001 Dan Schwarzlander
	if (isNaN(str1)) return false;
	else { return true;}
}

function isNatNum(str1){
	// this function copyright 2001 Dan Schwarzlander
	if ((str1 > 0) && (parseInt(str1, 10) == str1)) return true;
	else { return false;}
}


function get_type(foo){
	// this function copyright 2001 Dan Schwarzlander
	switch (foo) 
	{
	case "hr":e_type="Horizontal Rule"; break; 
	case "in":e_type="Instruction"; break; 
	case "ta":e_type="Text Area"; break; 
	case "tf":e_type="Text Field"; break; 
	case "ti":e_type="Title"; break; 
	case "rb":e_type="Radio Buttons"; break; 
	case "sl":e_type="Selection List"; break; 
	case "cb":e_type="Checkboxes"; break; 
	}
return e_type;
} 

function opop(popupurl) {
	var popup = window.open(popupurl,"mintyfresh","scrollbars=yes,toolbar=no,status=yes,top=50,left=50,width=500,height=500,resizable=yes");
	popup.focus();
}
function pop_size(popupurl,w,h) {
	var popup = window.open(popupurl,"mintyfresh","scrollbars=yes,toolbar=no,status=yes,top=50,left=50,width="+w+",height="+h+",resizable=yes");
	popup.focus();
}

