function flash()
{
    document.write('<object type="application/x-shockwave-flash" data="layouts/001/header.swf" width="803" height="236">\n');
    document.write('<param name="movie" value="layouts/001/header.swf" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('</object>\n');
}

function winopen(theURL, Name, popW, popH, scroll) { // V 1.0
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+scroll;
	Win = window.open(theURL, Name, winProp);
}

function numericVal(obj)   {

    var tam = obj.value.length;
    var numeric = false;
    for(var i=0;i<tam;i++)


        {
        	caracter = obj.value.charCodeAt(i);
        if((caracter >= 48 && caracter <= 57) )
        numeric = true;
        else

            {
            obj.value=obj.value.substring(0,tam-1);
            numericVal(obj);
        }

    }
}

function showhide (id)	{
	var style = document.getElementById(id).style
	if (style.display == "none")
		style.display = "";
	else
		style.display="none";
}