<!-- Ver os campos do email
function checkrequired(which) {
var pass=true;
var confpass=true;
if (document.images) 
{
	for (i=0;i<which.length;i++) 
	{
		var tempobj=which.elements[i];
		if (tempobj.name.substring(0,11)=="obrigatorio") 
		{
			if (((tempobj.type=="text"||tempobj.type=="textarea"||tempobj.type=="password")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s" && tempobj.selectedIndex==0)) 
			{
				pass=false;
				break;
			}
      	}
   	}
}
if (!pass) 
{
	shortFieldName=tempobj.name.substring(11,30).toUpperCase();
	alert("O campo de preenchimento obrigatório: "+shortFieldName+", não foi preenchido.");
	return false;
} else

	return true;
}
//  End 

// Abrir um popup

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=40,width=92,scrollbars=no');
myform.target=windowname;
return true;
}
// End

// Código para fazer o menu vertical fazer scrool
function flashmenu(inMenu1,inMenu2,inMenu3)
{

	var xmlDoc = new ActiveXObject("MSXML.DOMDocument");
	xmlDoc.async = false;
	xmlDoc.load("/Common/menu.xml");

	if(xmlDoc.parseError != 0){}
	else
	{
		var xroot = xmlDoc.documentElement;
		var node1 = xroot.getElementsByTagName("menu1");
		navLnk=""

		if (inMenu1!="") {
			for (var i=0;i<node1.length;i++) {
				if (node1(i).attributes(0).nodeValue == inMenu1 && node1(i).nodeName=="menu1"){
						navLnk = node1(i).attributes(2).nodeValue

					if (inMenu2!="") {
						for ( var j=0;j<node1(i).childNodes.length;j++) {
							if (node1(i).childNodes(j).attributes(0).nodeValue == inMenu2 && node1(i).childNodes(j).nodeName=="menu2") {
									navLnk = node1(i).childNodes(j).attributes(2).nodeValue

								if (inMenu3!=null) {
									if (inMenu3!="") {
										im = eval(inMenu3-1)
										node2 = xroot.childNodes(i).childNodes(j)
										navLnk = node2.childNodes(im).attributes(2).nodeValue
									}
								}
							}
						}
					}
				}
			}
		}
	}

	location.href=navLnk;
}
// End