function upDate(url) {
    if (document.images) {document.images["imgPic"].src=url};
}

function gotoURL(form)
{
    var arr;
	for (var i = 0; i < form.options.length; i++)
	{
		if (form.options[i].selected == true && form.options[i].value!="" )
		{
			arr = form.options[i].value.split(";");
			
			if (arr[0] != "") { 
				if (arr[1] == "_new") 
					window.open(arr[0], "Link", "width=700,height=500,top=50,left=50,directories=no,toolbar=no,status=yes,resizable=no,menubar=no,scrollbars=yes,dependent=yes");
				else if (arr[1] == "_top")
				{
					top.location= arr[0];
				}
				else if (arr[1] == "_barra")
				{
					parent.frames["empresa"].location = arr[0];
				}
			else
				document.location = arr[0];
			}
		}
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function clearText(thefield)
{

if (thefield.defaultValue == thefield.value) thefield.value = ""
else {
	if (thefield.value == "") 	thefield.value = thefield.defaultValue
	}
}


function popUpSend(url) {
	if (document.all)
		var xMax = screen.width, yMax = screen.height;
	else
		if (document.layers)
			var xMax = window.outerWidth, yMax = window.outerHeight;
		else
			var xMax = 640, yMax = 480;

	var xOffset = (xMax - 640)/2, yOffset = (yMax - 480)/2;

	window.open(url,'send','width=350,height=258,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}
