<!--
var strCurrentImageName;

function rollover(objImage,strNewSource){
	if(strCurrentImageName != objImage.name){
		objImage.src = strNewSource;	
	}
}

function refreshData(){
	opener.location.reload();
	window.close();
}

function findObj(n, d){
	var p,i,x;  if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function openHome(){
	parent.topnav.location.href = 'amex_header.asp';
	window.location.href = 'amex_home.asp';
}

function pop(mypage, myname, w, h, scroll){
	pos_left = (screen.width - w) / 2
	pos_top = (screen.height - h) / 2
	winprops = 'height='+h+',width='+w+',scrollbars='+scroll+',left='+ pos_left +',top='+ pos_top +''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function submitSearch(){
	var objForm = document.frm_busca;
	parent.topnav.location.href = 'amex_header.asp?intArea=13';	

	if(objForm.keyword.value == 'Palavra chave'){
		objForm.keyword.value = '';
	}

	objForm.submit();
}

function submitPublisherSearch(){
	if(isChecked(findObj('intMode', false))){
		var objForm = document.frm_busca;		
		if(objForm.keyword.value == 'Palavra chave'){
			objForm.keyword.value = '';
		}
		objForm.submit();
	}else{
		alert('Selecione um status.');	
	}
}

function onPressKey(intPressKey,intKey,strFunction){
	if(intPressKey == intKey){
		eval(strFunction);
	}
}


function inserirImagem (strTipo,decId){
	pop('pop_upload.asp?strTipo='+strTipo + '&decId=' + decId,'popUpload',300,250,0);
}
//-->
